-
Notifications
You must be signed in to change notification settings - Fork 710
Conditional sections in cabal.project can be silently ignored depending on cache state #8699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is a reproducer. Save cabal-version: 3.4
name: conditionals-in-project
version: 0
library
build-depends:
base < 4.17 as packages: .
if(impl(ghc >= 9.4))
allow-newer: conditionals-in-project:base as Now both
|
#8819 say it resolves this issue. Could you verify and close it, if so? |
On two separate occasions I've hit an issue with conditionals in
cabal.project
, which I nevertheless cannot reliably reproduce aftercabal clean
. Thus this ticket is likely for future reference only, maybe someone will be more lucky / persistent.The issue I witnessed is that
section in
cabal.project
was ignored bycabal build -w ghc-9.6
. The necessary (but not sufficient) preconditions seem to be thatghc
inPATH
isghc-9.4
and there was a successfulcabal build
before (implicitly with GHC 9.4).Cf. #7783 and #8358.
The text was updated successfully, but these errors were encountered: