forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently use the Cabal version picked by the dependency solver.
Previously, cabal always chose a Cabal library version to use for a package's setup script that didn't take setup-depends into account (cabalLibVersion). cabalLibVersion depended on the cabal-version field, the installed versions of Cabal, etc., and it was used when setup dependencies were not chosen by the dependency solver. When a package had a setup-depends, cabalLibVersion was later ignored in favor of the version chosen by the dependency solver. However, calculating the variable caused an error when the only suitable Cabal version was installed during the same install command (issue haskell#3436). cabalLibVersion was also used to filter the configure flags (issue haskell#3433). This commit sets cabalLibVersion to the version chosen by the dependency solver, when possible. (cherry picked from commit 77fb0b9)
- Loading branch information
Showing
1 changed file
with
33 additions
and
19 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