-
Notifications
You must be signed in to change notification settings - Fork 721
Description
With cabal-install-3.12.1.0, I can trigger this bug
- by
cabal install -w ghc-8.0.2 system-filepath-0.4.14(latest version ofsystem-filepath) - by getting
system-filepathand do acabal install --lib -w ghc-8.0.2 - or by getting package
acid-state(which depends onsystem-filepath) and then do acabal build -w ghc-8.0.2
In the wild: https://github.com/acid-state/acid-state/actions/runs/10947885622/job/30397644524?pr=170#step:17:566
Error is:
setup: Unrecognised flags: lib:system-filepath
With cabal master (3.15), I am getting different errors:
unrecognized 'configure' option `--with-doctest=/Users/abel/.cabal/bin/doctest'
unrecognized 'configure' option `--with-runghc=/usr/local/bin/runghc-8.0.2'
None of the mentioned errors occur with -w ghc-8.2.2 (or any higher GHC major version).
If I have to guess, then it is not really the GHC version that matters here but the version of the Cabal library that the Setup.hs is built with. (But I could be on the wrong track.)
- GHC 8.0 comes with Cabal-1.24
- GHC 8.2 comes with Cabal-2.0
So, was support for Cabal-1.24 (silently or by accident) dropped in cabal-install-3.12? (Couldn't find it in https://github.com/haskell/cabal/blob/982fb820991e0b29228243ad6dbee23c11adde1d/release-notes/cabal-install-3.12.1.0.md)
A parallel to such unwanted compatibility drop is
Should cabal-install explicitly refuse to work with Cabal < 2?