Skip to content

Commit 96e5450

Browse files
committed
Apply 'any' qualifier to new-freeze constraints (fixes #4832).
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.
1 parent 4e85e44 commit 96e5450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/Distribution/Client/CmdFreeze.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ projectFreezeConstraints plan =
173173
versionConstraints :: Map PackageName [(UserConstraint, ConstraintSource)]
174174
versionConstraints =
175175
Map.mapWithKey
176-
(\p v -> [(UserConstraint (UserQualified UserQualToplevel p) (PackagePropertyVersion v),
176+
(\p v -> [(UserConstraint (UserAnyQualifier p) (PackagePropertyVersion v),
177177
ConstraintSourceFreeze)])
178178
versionRanges
179179

0 commit comments

Comments
 (0)