Hey,
I was trying to build all the "*-tested" containers and came across errors while building some of them, such as cabal-2, cabal-4, cabal-5, and cabal-6.
The errors mostly are build failures of the kind
#8 218.2 src/Distribution/Client/FetchUtils.hs:195:36: error:
#8 218.2 * Couldn't match type `Distribution.Types.PackageId.PackageIdentifier'
#8 218.2 with `Cabal-syntax-3.12.1.0:Distribution.Types.PackageId.PackageIdentifier'
#8 218.2 NB: `Cabal-syntax-3.12.1.0:Distribution.Types.PackageId.PackageIdentifier'
#8 218.2 is defined in `Distribution.Types.PackageId'
#8 218.2 in package `Cabal-syntax-3.12.1.0'
#8 218.2 `Distribution.Types.PackageId.PackageIdentifier'
#8 218.2 is defined in `Distribution.Types.PackageId'
#8 218.2 in package `Cabal-3.5.0.0'
#8 218.2 Expected type: Cabal-syntax-3.12.1.0:Distribution.Types.PackageId.PackageIdentifier
#8 218.2 Actual type: PackageId
#8 218.2 * In the second argument of Sec.downloadPackage', namely `pkgid'
#8 218.2 In a stmt of a 'do' block: Sec.downloadPackage' rep pkgid path
#8 218.2 In the second argument of `($)', namely
#8 218.2 `do info verbosity ("Writing " ++ path)
#8 218.2 Sec.downloadPackage' rep pkgid path'
#8 218.2 |
#8 218.2 195 | Sec.downloadPackage' rep pkgid path
#8 218.2 | ^^^^^
#8 218.3 cabal: Failed to build cabal-install-3.5.0.0 (which is required by
#8 218.3 test:unit-tests from cabal-install-3.5.0.0, test:memory-usage-tests from
#8 218.3 cabal-install-3.5.0.0 and others).
#8 218.3 Failed to build cabal-testsuite-3.
#8 218.3
#8 ERROR: process "/bin/sh -c cabal v2-build cabal-install cabal-testsuite" did not complete successfully: exit code: 1
------
> [5/5] RUN cabal v2-build cabal-install cabal-testsuite:
218.2 `do info verbosity ("Writing " ++ path)
218.2 Sec.downloadPackage' rep pkgid path'
218.2 |
218.2 195 | Sec.downloadPackage' rep pkgid path
218.2 | ^^^^^
218.3 cabal: Failed to build cabal-install-3.5.0.0 (which is required by
218.3 test:unit-tests from cabal-install-3.5.0.0, test:memory-usage-tests from
218.3 cabal-install-3.5.0.0 and others).
218.3 Failed to build cabal-testsuite-3.
218.3
------
1 warning found (use docker --debug to expand):
- LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format (line 4)
HASBUGS_DOCKERFILE:12
--------------------
10 |
11 | RUN cabal v2-update
12 | >>> RUN cabal v2-build cabal-install cabal-testsuite
13 |
14 | ENTRYPOINT ["dist-newstyle/build/x86_64-linux/ghc-8.10.7/cabal-testsuite-3/build/cabal-tests/cabal-tests --with-cabal dist-newstyle/build/x86_64-linux/ghc-8.10.7/cabal-install-3.5.0.0/x/cabal/build/cabal/cabal cabal-testsuite/PackageTests/NewConfigure/ConfigFile/cabal.test.hs cabal-testsuite/PackageTests/NewFreeze/FreezeFile/new_freeze.test.hs"]
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c cabal v2-build cabal-install cabal-testsuite" did not complete successfully: exit code: 1
Any help on how to proceed would be nice.
Hey,
I was trying to build all the "*-tested" containers and came across errors while building some of them, such as cabal-2, cabal-4, cabal-5, and cabal-6.
The errors mostly are build failures of the kind
Any help on how to proceed would be nice.