Skip to content

Commit 9f37bba

Browse files
grayjayezyang
authored andcommitted
Add regression test for issue #4154.
1 parent 2f230af commit 9f37bba

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages: .
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Test.Cabal.Prelude
2+
3+
-- Test that unqualified command line constraints do not constrain setup
4+
-- dependencies. cabal should be able to install the local time-99999 by
5+
-- building its setup script with the installed time, even though the installed
6+
-- time doesn't fit the constraint.
7+
main = cabalTest $ withRepo "repo" $
8+
cabal "new-build" ["time", "--constraint=time==99999", "--dry-run"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Cabal
2+
version: 99999
3+
cabal-version: >=1.8
4+
build-type: Simple
5+
6+
library
7+
build-depends: base, time
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: time
2+
version: 99999
3+
cabal-version: >=1.8
4+
build-type: Custom
5+
6+
custom-setup
7+
setup-depends: base, Cabal == 99999
8+
9+
library
10+
build-depends: base

0 commit comments

Comments
 (0)