Skip to content

Commit

Permalink
fix: unset Lake's environment variables for subproject invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Mar 5, 2024
1 parent 5052542 commit acce30f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/examples/SubVerso/Examples.lean
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ partial def loadExamples (leanProject : FilePath) : IO (NameMap (NameMap Example
cmd := "lake"
args := #["build", ":examples"]
cwd := leanProject
-- Unset Lake's environment variables
env := #["LAKE", "LAKE_HOME", "LAKE_PKG_URL_MAP", "LEAN_SYSROOT", "LEAN_AR", "LEAN_PATH", "LEAN_SRC_PATH"].map (·, none)
}
if res.exitCode != 0 then
throw <| .userError <|
Expand Down

0 comments on commit acce30f

Please sign in to comment.