Skip to content

Commit

Permalink
Apply 'any' qualifier to new-freeze constraints (fixes #4832).
Browse files Browse the repository at this point in the history
new-freeze produces constraints that allow all versions of each package from the
install plan, in order to constrain setup and build tool dependencies without
using qualified constraints. Since the constraints should apply to top-level,
setup, and build tool dependencies, they should use an 'any' qualifier.
  • Loading branch information
grayjay committed Oct 23, 2017
1 parent 4e85e44 commit 96e5450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/CmdFreeze.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ projectFreezeConstraints plan =
versionConstraints :: Map PackageName [(UserConstraint, ConstraintSource)]
versionConstraints =
Map.mapWithKey
(\p v -> [(UserConstraint (UserQualified UserQualToplevel p) (PackagePropertyVersion v),
(\p v -> [(UserConstraint (UserAnyQualifier p) (PackagePropertyVersion v),
ConstraintSourceFreeze)])
versionRanges

Expand Down

0 comments on commit 96e5450

Please sign in to comment.