Closed
Description
Can we delete cabal.project.coverage
? I can't find a reference to it in the codebase and noticed a problem with it:
$ cabal build all --dry-run --project-file=cabal.project.coverage
Error: cabal: Error parsing project file
/.../cabal/cabal.project.coverage:29:
"<eitherParsec>" (line 1, column 6):
unexpected end of input
expecting ".", ":", white space, "+", "-", opening paren, operator,
"installed", "source", "test" or "bench"
Here's the fix (making it like the other projects with similar constraints):
$ git diff
diff --git a/cabal.project.coverage b/cabal.project.coverage
index a6f9eefd0..0efc6bf15 100644
--- a/cabal.project.coverage
+++ b/cabal.project.coverage
@@ -26,7 +26,7 @@ allow-newer: windns-0.1.0.1:base
-- avoiding extra dependencies
constraints: rere -rere-cfg
-constraints: these
+constraints: these -assoc
program-options
ghc-options: -fno-ignore-asserts
It now builds:
$ cabal build all --dry-run --project-file=cabal.project.coverage
Resolving dependencies...
Build profile: -w ghc-9.4.7 -O1
In order, the following would be built (use -v for more details):
- Cabal-syntax-3.11.0.0 (lib) (cannot read state cache)
- solver-benchmarks-3 (lib) (cannot read state cache)
- hackage-security-0.6.2.3 (lib) (cannot read state cache)
- cabal-benchmarks-3 (test:cabal-benchmarks) (cannot read state cache)
- Cabal-tests-3 (test:rpmvercmp) (cannot read state cache)
- Cabal-tests-3 (test:no-thunks-test) (cannot read state cache)
- Cabal-3.11.0.0 (lib) (cannot read state cache)
- solver-benchmarks-3 (test:unit-tests) (cannot read state cache)
- solver-benchmarks-3 (exe:hackage-benchmark) (cannot read state cache)
- cabal-install-solver-3.11.0.0 (lib) (cannot read state cache)
- Cabal-tree-diff-3.11.0.0 (lib) (cannot read state cache)
- Cabal-tests-3 (test:custom-setup-tests) (cannot read state cache)
- Cabal-tests-3 (test:check-tests) (cannot read state cache)
- Cabal-tests-3 (lib) (cannot read state cache)
- Cabal-described-3.11.0.0 (lib) (cannot read state cache)
- Cabal-QuickCheck-3.11.0.0 (lib) (cannot read state cache)
- cabal-install-solver-3.11.0.0 (test:unit-tests) (cannot read state cache)
- cabal-install-3.11.0.0 (lib) (cannot read state cache)
- Cabal-tests-3 (test:parser-tests) (cannot read state cache)
- Cabal-tests-3 (test:hackage-tests) (cannot read state cache)
- cabal-testsuite-3 (lib:cabal-testsuite, exe:cabal-tests, exe:setup, exe:test-runtime-deps) (cannot read state cache)
- Cabal-tests-3 (test:unit-tests) (cannot read state cache)
- cabal-install-3.11.0.0 (test:unit-tests) (cannot read state cache)
- cabal-install-3.11.0.0 (test:mem-use-tests) (cannot read state cache)
- cabal-install-3.11.0.0 (test:long-tests) (cannot read state cache)
- cabal-install-3.11.0.0 (test:integration-tests2) (cannot read state cache)
- cabal-install-3.11.0.0 (exe:cabal) (cannot read state cache)
$ cabal --version
cabal-install version 3.10.2.0
compiled using version 3.10.2.1 of the Cabal library