1 import Test
.Cabal
.Prelude
5 -- Show how using 'any' qualifiers always with relaxed bounds can violate that
6 -- cabal freeze --constraint=... && cabal build
8 -- cabal build --constraint=...
10 -- Therefore, the packages in a cabal.project.freeze file must be properly qualified
12 out1
<- cabal
' "v2-build" ["--constraint=setup.libA == 0.1.0.0"]
13 assertOutputContains
"Setup: libA-0.1.0.0" out1
14 assertOutputContains
"Building: libA-0.2.0.0" out1
16 cabal
"v2-freeze" ["--constraint=setup.libA == 0.1.0.0"]
18 expectBroken
9799 $ do -- fails when building
19 out2
<- cabal
' "v2-build" []
20 -- After #9799 is fixed, these two lines should be changed to `assertOutputContains`
21 assertOutputDoesNotContain
"Setup: libA-0.1.0.0" out2
22 assertOutputDoesNotContain
"Building: libA-0.2.0.0" out2