-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: lake: ensure job actions can be lifted to
FetchM
(#4273)
In `v4.8.0-rc2`, due to additional build refactor changes, `JobM` no longer cleanly lifts in `FetchM`. Generally, a `JobM` action should not be run `FetchM` directly but spawned asynchronously as job (e.g., via `Job.async`). However, there may be some edge cases were this is necessary and it is a backwards compatibility break, so this change adds back the lift. This change also includes an `example` definition to ensure the lift works in order to prevent similar accidental breakages in the future. This breakage was first reported by Mario on [Zulip](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/v4.2E8.2E0-rc2.20discussion/near/440407037).
- Loading branch information
Showing
6 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/- | ||
Copyright (c) 2021 Mac Malone. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Mac Malone | ||
-/ | ||
|
||
namespace Lake | ||
|
||
/-- Creates any missing parent directories of `path`. -/ | ||
@[inline] def createParentDirs (path : System.FilePath) : IO Unit := do | ||
if let some dir := path.parent then IO.FS.createDirAll dir |