Skip to content

Commit

Permalink
fix scripts/mk_all
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed Oct 19, 2024
1 parent 33e27ef commit 971e6f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mk_all.lean
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ it includes `Mathlib/Tactic`. -/
def getLeanLibs : IO (Array String) := do
let (elanInstall?, leanInstall?, lakeInstall?) ← findInstall?
let config ← MonadError.runEIO <| mkLoadConfig { elanInstall?, leanInstall?, lakeInstall? }
let ws ← MonadError.runEIO (MainM.runLogIO (loadWorkspace config)).toEIO
let some ws ← loadWorkspace config |>.toBaseIO
| throw <| IO.userError "failed to load Lake workspace"
let package := ws.root
let libs := (package.leanLibs.map (·.name)).map (·.toString)
return if package.name == `mathlib then
Expand Down

0 comments on commit 971e6f5

Please sign in to comment.