forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request haskell#9680 from cabalism/test/project-hop-imports
Add tests for project imports and constraint version conflicts
- Loading branch information
Showing
65 changed files
with
838 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ConditionalAndImport/cabal-cyclical-1-hop.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: cabal-cyclical-1-hop.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/cabal-cyclical-2-hop-1.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: cabal-cyclical-2-hop-2.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/cabal-cyclical-2-hop-2.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: cabal-cyclical-2-hop.project |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ConditionalAndImport/cabal-cyclical-2-hop.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: cabal-cyclical-2-hop-1.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/cabal-cylical-1-hop.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: cabal-cyclical-1-hop.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/cyclical-same-filename-out-out-back.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: same-filename/cyclical-same-filename-out-out-back.config |
3 changes: 3 additions & 0 deletions
3
...l-testsuite/PackageTests/ConditionalAndImport/cyclical-same-filename-out-out-back.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: cyclical-same-filename-out-out-back.config |
1 change: 1 addition & 0 deletions
1
...estsuite/PackageTests/ConditionalAndImport/cyclical-same-filename-out-out-backback.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: same-filename/cyclical-same-filename-out-out-backback.config |
3 changes: 3 additions & 0 deletions
3
...stsuite/PackageTests/ConditionalAndImport/cyclical-same-filename-out-out-backback.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: cyclical-same-filename-out-out-backback.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/cyclical-same-filename-out-out-self.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: same-filename/cyclical-same-filename-out-out-self.config |
3 changes: 3 additions & 0 deletions
3
...l-testsuite/PackageTests/ConditionalAndImport/cyclical-same-filename-out-out-self.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: cyclical-same-filename-out-out-self.config |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ConditionalAndImport/hops-0.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: hops/hops-1.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops-2.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: hops/hops-3.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops-4.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: hops/hops-5.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops-6.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: hops/hops-7.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops-8.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: hops/hops-9.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops/hops-1.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../hops-2.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops/hops-3.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../hops-4.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops/hops-5.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../hops-6.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops/hops-7.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../hops-8.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/hops/hops-9.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- No imports here |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/noncyclical-same-filename-a.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: same-filename/noncyclical-same-filename-a.config |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ConditionalAndImport/noncyclical-same-filename-a.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: noncyclical-same-filename-a.config |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ConditionalAndImport/noncyclical-same-filename-b.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- No imports here |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ConditionalAndImport/noncyclical-same-filename-b.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
|
||
import: same-filename/noncyclical-same-filename-b.config |
1 change: 1 addition & 0 deletions
1
...ackageTests/ConditionalAndImport/same-filename/cyclical-same-filename-out-out-back.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../cyclical-same-filename-out-out-back.config |
1 change: 1 addition & 0 deletions
1
...geTests/ConditionalAndImport/same-filename/cyclical-same-filename-out-out-backback.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../cyclical-same-filename-out-out-backback.project |
1 change: 1 addition & 0 deletions
1
...ackageTests/ConditionalAndImport/same-filename/cyclical-same-filename-out-out-self.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: cyclical-same-filename-out-out-self.config |
1 change: 1 addition & 0 deletions
1
...tsuite/PackageTests/ConditionalAndImport/same-filename/noncyclical-same-filename-a.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- No imports here |
1 change: 1 addition & 0 deletions
1
...tsuite/PackageTests/ConditionalAndImport/same-filename/noncyclical-same-filename-b.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import: ../noncylical-same-filename-b.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/0-local.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config <ROOT>/0-local.project requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: . | ||
constraints: hashable ==1.4.3.0 | ||
constraints: hashable ==1.4.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "0-local.project" $ do | ||
fails $ cabal "v2-build" ["--dry-run"] |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/VersionPriority/1-local-constraints-import.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
constraints: hashable ==1.4.2.0 | ||
import: stackage-local.config |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/VersionPriority/1-local-import-constraints.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
import: stackage-local.config | ||
constraints: hashable ==1.4.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/1-local-constraints-import.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config stackage-local.config requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/1-local-import-constraints.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config stackage-local.config requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
|
||
testVersionWin project = | ||
withProjectFile project $ do | ||
fails $ cabal "v2-build" ["--dry-run"] | ||
|
||
main = cabalTest . withRepo "repo" $ do | ||
testVersionWin "1-local-constraints-import.project" | ||
testVersionWin "1-local-import-constraints.project" |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/VersionPriority/1-web-constraints-import.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
constraints: hashable ==1.4.2.0 | ||
import: https://www.stackage.org/nightly-2023-12-07/cabal.config | ||
import: with-ghc.config |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/VersionPriority/1-web-import-constraints.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
import: https://www.stackage.org/nightly-2023-12-07/cabal.config | ||
constraints: hashable ==1.4.2.0 | ||
import: with-ghc.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/1-web-constraints-import.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config https://www.stackage.org/nightly-2023-12-07/cabal.config requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/1-web-import-constraints.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config https://www.stackage.org/nightly-2023-12-07/cabal.config requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) |
13 changes: 13 additions & 0 deletions
13
cabal-testsuite/PackageTests/VersionPriority/1-web.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Test.Cabal.Prelude | ||
|
||
testVersionWin project = | ||
withProjectFile project $ do | ||
fails $ cabal "v2-build" ["--dry-run"] | ||
|
||
main = cabalTest . withRepo "repo" $ do | ||
-- To avoid this diff: | ||
-- -Build profile: -w ghc-9.6.3 -O1 | ||
-- +Build profile: -w ghc-<GHCVER> -O1 | ||
skipIfGhcVersion "== 9.6.3" | ||
testVersionWin "1-web-constraints-import.project" | ||
testVersionWin "1-web-import-constraints.project" |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/VersionPriority/2-local-constraints-import.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
constraints: hashable ==1.4.2.0 | ||
import: hop-local.config |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/VersionPriority/2-local-import-constraints.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
import: hop-local.config | ||
constraints: hashable ==1.4.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/2-local-constraints-import.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config stackage-local.config requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Error: [Cabal-7107] | ||
Could not resolve dependencies: | ||
[__0] trying: cabal-version-override-0.1.0.0 (user goal) | ||
[__1] next goal: hashable (dependency of cabal-version-override) | ||
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/2-local-import-constraints.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 (constraint from project config stackage-local.config requires ==1.4.3.0) | ||
[__1] fail (backjumping, conflict set: cabal-version-override, hashable) | ||
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), cabal-version-override (2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
|
||
testVersionWin project = | ||
withProjectFile project $ do | ||
fails $ cabal "v2-build" ["--dry-run"] | ||
|
||
main = cabalTest . withRepo "repo" $ do | ||
testVersionWin "2-local-constraints-import.project" | ||
testVersionWin "2-local-import-constraints.project" |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/VersionPriority/2-web-constraints-import.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
constraints: hashable ==1.4.2.0 | ||
import: stackage-web.config | ||
import: with-ghc.config |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/VersionPriority/2-web-import-constraints.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
packages: . | ||
allow-newer: hashable:* | ||
import: stackage-web.config | ||
constraints: hashable ==1.4.2.0 | ||
import: with-ghc.config |
Oops, something went wrong.