Skip to content

Commit e78c0c4

Browse files
committed
Download stackage.org/.../cabal.config locally
1 parent fb3f4d4 commit e78c0c4

File tree

7 files changed

+3359
-9
lines changed

7 files changed

+3359
-9
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
packages: .
22
allow-newer: hashable:*
33
constraints: hashable ==1.4.2.0
4-
import: https://www.stackage.org/nightly-2023-12-07/cabal.config
4+
5+
-- NOTE: We could have grabbed this config from stackage but we don't to avoid
6+
-- making an HTTP request with the test. So instead we save it locally.
7+
--
8+
-- $ curl https://www.stackage.org/nightly-2023-12-07/cabal.config --output project-stackage/nightly-2023-12-07.config
9+
import: project-stackage/nightly-2023-12-07.config
10+
511
import: with-ghc.config
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
packages: .
22
allow-newer: hashable:*
3-
import: https://www.stackage.org/nightly-2023-12-07/cabal.config
3+
4+
-- NOTE: We could have grabbed this config from stackage but we don't to avoid
5+
-- making an HTTP request with the test. So instead we save it locally.
6+
--
7+
-- $ curl https://www.stackage.org/nightly-2023-12-07/cabal.config --output project-stackage/nightly-2023-12-07.config
8+
import: project-stackage/nightly-2023-12-07.config
9+
410
constraints: hashable ==1.4.2.0
511
import: with-ghc.config

cabal-testsuite/PackageTests/VersionPriority/1-web.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Could not resolve dependencies:
77
[__0] trying: cabal-version-override-0.1.0.0 (user goal)
88
[__1] next goal: hashable (dependency of cabal-version-override)
99
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/1-web-constraints-import.project requires ==1.4.2.0)
10-
[__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)
10+
[__1] rejecting: hashable-1.4.2.0 (constraint from project config project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
1111
[__1] fail (backjumping, conflict set: cabal-version-override, hashable)
1212
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)
1313
# cabal v2-build
@@ -17,6 +17,6 @@ Could not resolve dependencies:
1717
[__0] trying: cabal-version-override-0.1.0.0 (user goal)
1818
[__1] next goal: hashable (dependency of cabal-version-override)
1919
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/1-web-import-constraints.project requires ==1.4.2.0)
20-
[__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)
20+
[__1] rejecting: hashable-1.4.2.0 (constraint from project config project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
2121
[__1] fail (backjumping, conflict set: cabal-version-override, hashable)
2222
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-testsuite/PackageTests/VersionPriority/2-web.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Could not resolve dependencies:
77
[__0] trying: cabal-version-override-0.1.0.0 (user goal)
88
[__1] next goal: hashable (dependency of cabal-version-override)
99
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/2-web-constraints-import.project requires ==1.4.2.0)
10-
[__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)
10+
[__1] rejecting: hashable-1.4.2.0 (constraint from project config project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
1111
[__1] fail (backjumping, conflict set: cabal-version-override, hashable)
1212
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)
1313
# cabal v2-build
@@ -17,6 +17,6 @@ Could not resolve dependencies:
1717
[__0] trying: cabal-version-override-0.1.0.0 (user goal)
1818
[__1] next goal: hashable (dependency of cabal-version-override)
1919
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/2-web-import-constraints.project requires ==1.4.2.0)
20-
[__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)
20+
[__1] rejecting: hashable-1.4.2.0 (constraint from project config project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
2121
[__1] fail (backjumping, conflict set: cabal-version-override, hashable)
2222
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-testsuite/PackageTests/VersionPriority/3-web.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Could not resolve dependencies:
77
[__0] trying: cabal-version-override-0.1.0.0 (user goal)
88
[__1] next goal: hashable (dependency of cabal-version-override)
99
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/3-web-constraints-import.project requires ==1.4.2.0)
10-
[__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)
10+
[__1] rejecting: hashable-1.4.2.0 (constraint from project config project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
1111
[__1] fail (backjumping, conflict set: cabal-version-override, hashable)
1212
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)
1313
# cabal v2-build
@@ -17,6 +17,6 @@ Could not resolve dependencies:
1717
[__0] trying: cabal-version-override-0.1.0.0 (user goal)
1818
[__1] next goal: hashable (dependency of cabal-version-override)
1919
[__1] rejecting: hashable-1.4.3.0 (constraint from project config <ROOT>/3-web-import-constraints.project requires ==1.4.2.0)
20-
[__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)
20+
[__1] rejecting: hashable-1.4.2.0 (constraint from project config project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
2121
[__1] fail (backjumping, conflict set: cabal-version-override, hashable)
2222
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)

0 commit comments

Comments
 (0)