Skip to content

Commit

Permalink
chore: teach lake exe cache about ProofWidgets (#5128)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
  • Loading branch information
2 people authored and jcommelin committed Jun 17, 2023
1 parent 77738af commit 64f9723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cache/IO.lean
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ def isMathlibRoot : IO Bool :=
def mathlibDepPath : FilePath :=
LAKEPACKAGESDIR / "mathlib"

-- TODO this should be generated automatically from the information in `lakefile.lean`.
def getPackageDirs : IO PackageDirs := return .ofList [
("Mathlib", if ← isMathlibRoot then "." else mathlibDepPath),
("MathlibExtras", if ← isMathlibRoot then "." else mathlibDepPath),
("Aesop", LAKEPACKAGESDIR / "aesop"),
("Std", LAKEPACKAGESDIR / "std"),
("ProofWidgets", LAKEPACKAGESDIR / "proofwidgets"),
("Qq", LAKEPACKAGESDIR / "Qq")
]

Expand Down

0 comments on commit 64f9723

Please sign in to comment.