@@ -69,10 +69,7 @@ def mathlibDepPath : FilePath :=
69
69
-- TODO this should be generated automatically from the information in `lakefile.lean`.
70
70
def getPackageDirs : IO PackageDirs := return .ofList [
71
71
("Mathlib" , if ← isMathlibRoot then "." else mathlibDepPath),
72
- -- Note that this prevents downstream projects from using a top-level `Util` directory.
73
- -- I'm not sure a good way around this for now, but hopefully it will be made obsolete
74
- -- by a new `cache` before it affects anyone.
75
- ("Util" , if ← isMathlibRoot then "." else mathlibDepPath),
72
+ ("MathlibExtras" , if ← isMathlibRoot then "." else mathlibDepPath),
76
73
("Aesop" , LAKEPACKAGESDIR / "aesop" ),
77
74
("Std" , LAKEPACKAGESDIR / "std" ),
78
75
("ProofWidgets" , LAKEPACKAGESDIR / "proofwidgets" ),
@@ -85,7 +82,7 @@ def getPackageDir (path : FilePath) : IO FilePath :=
85
82
match path.withExtension "" |>.components.head? with
86
83
| none => throw $ IO.userError "Can't find package directory for empty path"
87
84
| some pkg => match pkgDirs.find? pkg with
88
- | none => throw $ IO.userError s! "Unknown package directory for { pkg} , { path } "
85
+ | none => throw $ IO.userError s! "Unknown package directory for { pkg} "
89
86
| some path => return path
90
87
91
88
/-- Runs a terminal command and retrieves its output, passing the lines to `processLine` -/
@@ -209,8 +206,8 @@ def isPathFromMathlib (path : FilePath) : Bool :=
209
206
match path.components with
210
207
| "Mathlib" :: _ => true
211
208
| ["Mathlib.lean" ] => true
212
- | "Util" :: "TacticCaches " :: _ => true
213
- | ["Util" , "TacticCaches .lean" ] => true
209
+ | "MathlibExtras " :: _ => true
210
+ | ["MathlibExtras .lean" ] => true
214
211
| _ => false
215
212
216
213
/-- Decompresses build files into their respective folders -/
0 commit comments