Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
fix: only write manifest if a package was resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed May 24, 2022
1 parent d231aae commit 609c922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lake/CLI/Main.lean
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def loadWorkspace (args : List String := []) (updateDeps := true) : CliStateM Wo
pure {}
let (packageMap, resolveMap) ←
resolveDeps ws pkg updateDeps |>.run manifest |>.run LogMethods.eio (m := IO)
IO.FS.writeFile ws.manifestFile <| Json.pretty <| toJson <| Manifest.fromMap resolveMap
unless resolveMap.isEmpty do
IO.FS.writeFile ws.manifestFile <| Json.pretty <| toJson <| Manifest.fromMap resolveMap
let packageMap := packageMap.insert pkg.name pkg
return {ws with packageMap}

Expand Down

0 comments on commit 609c922

Please sign in to comment.