Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Miso/CLI/Deps.hs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,14 @@ updateDeps cfg0 = do
cfg <- withMiso cfg0
setupEnv
info "Updating the package list"
withGlobalCabal (runSelf "mcabal update")
-- In $MISO_HOME, the package list every project shares. mcabal runs in
-- a child (miso mcabal), which sets CABALDIR again from the project it is
-- in: so not in the project, and without the MISO_PROJECT this process
-- set, or it wrote the new list to the project's .miso/ and the old one
-- was copied back over it.
global <- globalCabalDir
exe <- self
withGlobalCabal (run ("cd " ++ quote global ++ " && MISO_PROJECT= " ++ quote exe ++ " mcabal update"))
old <- maybe [] id <$> readLock
info ("Locking the dependencies in " ++ lockFile)
new <- resolveTree False old cfg
Expand Down
Loading