forked from haskell/cabal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make newly-added add-source deps override previously installed versions.
Fixes haskell#1197. This patch is a bit large because it includes several related changes: 1) Remove 'installUseSandbox' from 'InstallFlags' and pass 'useSandbox' as an additional argument instead. 2) Instead of calling 'reinstallAddSourceDeps' from 'installAction', always pass 'SandboxPackageInfo' to 'install'. 3) Set the timestamps of newly-added add-source deps to 0 in the timestamp file. 4) Move the timestamp file update to 'postInstallActions' from 'withModifiedDeps'. This way, the timestamps are updated even when the user runs 'install --only-dependencies' or 'install some-add-source-dep-package-id'.
- Loading branch information
Showing
7 changed files
with
207 additions
and
145 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
Oops, something went wrong.