Skip to content

Commit 03d33bd

Browse files
committed
deprecation in lakefile
1 parent ab7a8db commit 03d33bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lakefile.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ update its toolchain to match Mathlib's and fetch the new cache.
177177
-/
178178
post_update pkg do
179179
let rootPkg ← getRootPackage
180-
if rootPkg.name = pkg.name then
180+
if rootPkg.baseName = pkg.baseName then
181181
return -- do not run in Mathlib itself
182182
if (← IO.getEnv "MATHLIB_NO_CACHE_ON_UPDATE") != some "1" then
183183
-- Check if Lake version matches toolchain version
@@ -204,4 +204,4 @@ post_update pkg do
204204
finally
205205
IO.Process.setCurrentDir cwd
206206
if exitCode ≠ 0 then
207-
error s!"{pkg.name}: failed to fetch cache"
207+
error s!"{pkg.baseName}: failed to fetch cache"

0 commit comments

Comments
 (0)