Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - fix: add .hash files to the cache #7291

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion Cache/IO.lean
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,13 @@ Each build file also has a `Bool` indicating whether that file is required for c
def mkBuildPaths (path : FilePath) : IO $ List (FilePath × Bool) := do
let packageDir ← getPackageDir path
return [
(packageDir / LIBDIR / path.withExtension "trace", true),
(packageDir / LIBDIR / path.withExtension "trace", true), -- this one has to be first
digama0 marked this conversation as resolved.
Show resolved Hide resolved
(packageDir / LIBDIR / path.withExtension "olean", true),
(packageDir / LIBDIR / path.withExtension "olean.hash", true),
(packageDir / LIBDIR / path.withExtension "ilean", true),
(packageDir / LIBDIR / path.withExtension "ilean.hash", true),
(packageDir / IRDIR / path.withExtension "c", true),
(packageDir / IRDIR / path.withExtension "c.hash", true),
(packageDir / LIBDIR / path.withExtension "extra", false)]

/-- Check that all required build files exist. -/
Expand Down
2 changes: 1 addition & 1 deletion lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{"git":
{"url": "https://github.com/leanprover/std4",
"subDir?": null,
"rev": "67855403d60daf181775fa1ec63b04e70bcc3921",
"rev": "67855403d60daf181775fa1ec63b04e70bcc3921",
digama0 marked this conversation as resolved.
Show resolved Hide resolved
"opts": {},
"name": "std",
"inputRev?": "main",
Expand Down