Skip to content

Commit d9cd6dc

Browse files
committed
Allow erroneous warning for now.
Eventually, configuring will be rewritten so extra constraints do note pollute the checks. When that happens this commit should be reverted.
1 parent 81f84e2 commit d9cd6dc

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

cabal-testsuite/PackageTests/Backpack/Includes2/cabal-internal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ Building library 'mylib' instantiated with
3434
Database = Includes2-0.1.0.0-inplace-postgresql:Database.PostgreSQL
3535
for Includes2-0.1.0.0..
3636
Configuring library for Includes2-0.1.0.0..
37+
Warning: The package has an extraneous version range for a dependency on an internal library: Includes2 -any && ==0.1.0.0 && ==0.1.0.0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
3738
Preprocessing library for Includes2-0.1.0.0..
3839
Building library for Includes2-0.1.0.0..
3940
Configuring executable 'exe' for Includes2-0.1.0.0..
41+
Warning: The package has an extraneous version range for a dependency on an internal library: Includes2 -any && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
4042
Preprocessing executable 'exe' for Includes2-0.1.0.0..
4143
Building executable 'exe' for Includes2-0.1.0.0..
4244
# Includes2 exe

cabal-testsuite/PackageTests/BuildTools/Internal/cabal.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ Configuring library for foo-0.1.0.0..
1212
Preprocessing library for foo-0.1.0.0..
1313
Building library for foo-0.1.0.0..
1414
Configuring executable 'hello-world' for foo-0.1.0.0..
15+
Warning: The package has an extraneous version range for a dependency on an internal library: foo -any && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
1516
Preprocessing executable 'hello-world' for foo-0.1.0.0..
1617
Building executable 'hello-world' for foo-0.1.0.0..

cabal-testsuite/PackageTests/TestSuiteTests/ExeV10/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Configuring library for my-0.1..
99
Preprocessing library for my-0.1..
1010
Building library for my-0.1..
1111
Configuring test suite 'test-Short' for my-0.1..
12+
Warning: The package has an extraneous version range for a dependency on an internal library: my -any && ==0.1, my -any && ==0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
1213
Preprocessing test suite 'test-Short' for my-0.1..
1314
Building test suite 'test-Short' for my-0.1..
1415
Running 1 test suites...
@@ -17,6 +18,7 @@ Test suite test-Short: PASS
1718
Test suite logged to: <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/my-0.1/t/test-Short/test/my-0.1-test-Short.log
1819
1 of 1 test suites (1 of 1 test cases) passed.
1920
Configuring test suite 'test-Foo' for my-0.1..
21+
Warning: The package has an extraneous version range for a dependency on an internal library: my -any && ==0.1, my -any && ==0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
2022
Preprocessing test suite 'test-Foo' for my-0.1..
2123
Building test suite 'test-Foo' for my-0.1..
2224
Running 1 test suites...

0 commit comments

Comments
 (0)