Repository navigation
[Merged by Bors] - fix(Cache): correctly handle local copies of Mathlib - #8662
eric-wieser wants to merge 5 commits into
Conversation
|
Sorry, it's been a while since I've got in touch with this code so my review is definitely unsatisfactory. |
|
|
Is it there when you first create a project? |
No, sadly, it is not. |
Co-authored-by: Scott Morrison <[email protected]>
Co-authored-by: Scott Morrison <[email protected]>
|
bors d+ |
|
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors merge |
This parses the `lake-manifest` to work out where mathlib is. Previously this assumed it was in `.lake/packages`, but this is only true of `git` packages. As a result, it would fail with: ``` uncaught exception: no such file or directory (error code: 2) file: .lake/packages/mathlib/lakefile.lean ``` Tested on a blank project created with `lake new test math`, with `require mathlib from "../mathlib4"` in the lakefile.
|
Pull request successfully merged into master. Build succeeded: |
MathlibMathlib
This parses the `lake-manifest` to work out where mathlib is. Previously this assumed it was in `.lake/packages`, but this is only true of `git` packages. As a result, it would fail with: ``` uncaught exception: no such file or directory (error code: 2) file: .lake/packages/mathlib/lakefile.lean ``` Tested on a blank project created with `lake new test math`, with `require mathlib from "../mathlib4"` in the lakefile.
This parses the
lake-manifestto work out where mathlib is.Previously this assumed it was in
.lake/packages, but this is only true ofgitpackages. As a result, it would fail with:Tested on a blank project created with
lake new test math, withrequire mathlib from "../mathlib4"in the lakefile.