File tree Expand file tree Collapse file tree 4 files changed +27
-23
lines changed Expand file tree Collapse file tree 4 files changed +27
-23
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,6 @@ constraints: unix >= 2.7.1.0
4
4
-- Uncomment to allow picking up extra local unpacked deps:
5
5
--optional-packages : */
6
6
7
- -- Remove after hackage-repo-tool release
8
- allow-newer :
9
- hackage-repo-tool :optparse-applicative
10
-
11
- allow-newer :
12
- hackage-security :Cabal
13
-
14
7
program-options
15
8
-- So us hackers get all the assertion failures early:
16
9
--
Original file line number Diff line number Diff line change 7
7
-- build it reliably. If we eventually get new-install
8
8
-- in the bootstrap, this can go away.
9
9
optional-packages: hackage-repo-tool-*/
10
- -- hackage-repo-tool has upper bound on Cabal
11
- allow-newer: hackage-repo-tool:Cabal, hackage-repo-tool: time, hackage-repo-tool:directory
10
+ -- hackage-repo-tool has upper bound on time
11
+ allow-newer: hackage-repo-tool:time
12
12
13
13
-- The -fno-warn-orphans is a hack to make Cabal-1.24
14
14
-- build properly (unfortunately the flags here get applied
Original file line number Diff line number Diff line change 1
- -- Force error messages to be better
2
- -- Parallel new-build error messages are non-existent.
3
- -- Turn off parallelization to get good errors.
4
- jobs: 1
1
+ -- A copy of cabal.project, but with a trimmed down 'packages'
2
+ -- field. Needed for LIB_ONLY configurations that can't build cabal-install,
3
+ -- only lib:Cabal.
5
4
6
- -- Ignore cabal-install in the CABAL_LIB_ONLY configuration.
7
- packages: ./Cabal
5
+ packages: Cabal/
6
+ constraints: unix >= 2.7.1.0
8
7
9
- -- The -fno-warn-orphans is a hack to make Cabal-1.24
10
- -- build properly (unfortunately the flags here get applied
11
- -- to the dependencies too!)
8
+ -- Uncomment to allow picking up extra local unpacked deps:
9
+ --optional-packages: */
10
+
11
+ program-options
12
+ -- So us hackers get all the assertion failures early:
13
+ --
14
+ -- NOTE: currently commented out, see
15
+ -- https://github.com/haskell/cabal/issues/3911
16
+ --
17
+ -- ghc-options: -fno-ignore-asserts
18
+ --
19
+ -- as a workaround we specify it for each package individually:
12
20
package Cabal
13
- ghc-options: -Werror -fno-warn-orphans
21
+ ghc-options: -fno-ignore-asserts
22
+ package cabal-testsuite
23
+ ghc-options: -fno-ignore-asserts
24
+ package cabal-install
25
+ ghc-options: -fno-ignore-asserts
Original file line number Diff line number Diff line change @@ -83,13 +83,12 @@ timed cabal update
83
83
84
84
make cabal-install-monolithic
85
85
if [ " x$CABAL_LIB_ONLY " = " xYES" ]; then
86
- cp cabal.project.travis.libonly cabal.project.local
87
- else
88
- cp cabal.project.travis cabal.project.local
86
+ cp cabal.project.travis.libonly cabal.project
89
87
fi
88
+ cp cabal.project.local.travis cabal.project.local
90
89
91
90
# hackage-repo-tool is a bit touchy to install on GHC 8.0, so instead we
92
- # do it via new-build. See also cabal.project.travis. The downside of
91
+ # do it via new-build. See also cabal.project.local. travis. The downside of
93
92
# doing it this way is that the build product cannot be cached, but
94
93
# hackage-repo-tool is a relatively small package so it's good.
95
94
timed cabal unpack hackage-repo-tool-${HACKAGE_REPO_TOOL_VERSION}
You can’t perform that action at this time.
0 commit comments