Open vmchale opened 2 weeks ago
I can reproduce this locally using the latest cabal-install
;
$ git rev-parse HEAD
03d98294e1c071be368f04dbe6fc9cb263bea86d
$ cabal install cabal-install:exe:cabal --overwrite-policy=always
$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Build profile: -w ghc-8.0.2 -O1
...
setup: Unrecognised flags: lib:pretty-simple
Error: [Cabal-7125]
Failed to build pretty-simple-3.3.0.0 (which is required by test:shake-dhall-test from shake-dhall-0.1.1.3).
Note that:
Of course if there is a way to fix this for older GHCs, it is more than welcome @philderbeast !
Bumping up to ghc-8.2.2
, all seems good;
$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Build profile: -w ghc-8.2.2 -O1
In order, the following will be built (use -v for more details):
...
- pretty-simple-3.3.0.0 (lib:pretty-simple) (requires build)
...
Starting pretty-simple-3.3.0.0 (all, legacy fallback: build-type is Custom)
...
Building library for shake-dhall-0.1.1.3...
[1 of 2] Compiling Dhall.Dep
[2 of 2] Compiling Development.Shake.Dhall
Warning: this is a debug build of cabal-install with assertions enabled.
Warning: this is a debug build of cabal-install with assertions enabled.
Configuring test suite 'shake-dhall-test' for shake-dhall-0.1.1.3...
Warning: this is a debug build of cabal-install with assertions enabled.
Preprocessing test suite 'shake-dhall-test' for shake-dhall-0.1.1.3...
Building test suite 'shake-dhall-test' for shake-dhall-0.1.1.3...
[1 of 1] Compiling Main
Linking dist-newstyle/.../shake-dhall-test ...
$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Up to date
I reran the command cabal build
to get the "Up to date" because I noticed there's no emphatic output saying that the build was successful, nothing like a :+1:
Technically, we should close this as not-planned because it's out of our GHC support window (thanks, Francesco, for noticing!). But it's a curious bug: I wonder what change between 3.10 and 3.12 leads to it.
setup: Unrecognised flags: lib:pretty-simple
Error: [Cabal-7125]
That's a fairly general failure, "die if not haddock failure".
Same set up has no problem building the dependency by itself;
$ cabal get pretty-simple-3.3.0.0
Warning: this is a debug build of cabal-install with assertions enabled.
Unpacking to pretty-simple-3.3.0.0/
$ cd pretty-simple-3.3.0.0/
$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Build profile: -w ghc-8.0.2 -O1
...
$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Up to date
I think this is because of the Cabal
version used rather than the ghc
version in particular.
I imagine it's caused by f70fc980dca50e7e62c5e803f56d2ef0c9fc7e18 (also see #9640)
Describe the bug
The message:
To Reproduce
It arose in my shake-dhall repo:
Expected behavior
It should build and behave as Cabal 3.10.x
System information