Ticket #131 (new defect)
cabal-install should rebuild dependants when a package is upgraded
| Reported by: | bringert | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | cabal-install-0.16 |
| Component: | cabal-install tool | Version: | HEAD |
| Severity: | normal | Keywords: | |
| Cc: | gwern0@…, wehr@… | Difficulty: | hard (< 1 day) |
| GHC Version: | 6.6 | Platform: | Linux |
Description
Currently, when cabal-install upgrades a package, other packages that depend on it are not rebuilt.
Scenario: You have package A-1.0 and A-2.0, and B-1.0 which depends on A. B-1.0 is compiled against A-1.0. C then depends on A and B, and GHC picks A-2.0 and B-1.0. This breaks, because C now uses A-2.0 and B-1.0 uses A-1.0.
This could be made less of a problem if cabal-install would be able to reinstall all packages which depend on the new package. This might not always be what you want, so there should be a flag to turn it off.
Logic: When installing a new package Foo-X.Y, then each installed package which depends on Foo with a version range that includes X.Y should be reinstalled.
