-
Notifications
You must be signed in to change notification settings - Fork 697
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
Cabal-install 3.8.1.0 no longer passes through ghc-options on install
#8637
Comments
Hi, many thanks for the report. Possible workarounds (the usual ones):
or
Of course those workarounds do not work to install remote packages. I wonder if #7973 is related |
@patrickdoc did you get a chance to look at this? |
Reviewing my notes on #7998 , I believe the root issue here is that "hello" is not a local package. Internally, options are applied:
In this case, "hello" is classified as a "remote" package instead of "local", so the command-line flags are not applied. |
Hrm. Do you think that we should change I think that would be the least surprising behavior, and hopefully a fairly minimally invasive change (since it just affects the single command). |
@patrickdoc: ping? |
@patrickdoc: hopeful ping again? |
A fix in progress: #8779. |
* Apply command line flags to install packages (#8637) * remove expectBroken on NonIgnoredConfigs test --------- Co-authored-by: gbaz <[email protected]>
* Apply command line flags to install packages (#8637) * remove expectBroken on NonIgnoredConfigs test --------- Co-authored-by: gbaz <[email protected]> (cherry picked from commit 76670eb)
@patrickdoc: thank you! We hope this is fixed in #8779, which I'm backporting to 3.10 right now. Please reopen if not. |
Describe the bug
As per title,
cabal install
ignores--ghc-options
. This is changed from 3.6.To Reproduce
Compare:
Expected behavior
I don't know if this change is intentional, but as I couldn't find anything mentioning this specifically in the changelog, I'm guessing not.
System information
cabal
,ghc
versions: cabal 3.8.1.0, ghc 9.0.2.Additional context
Passing
--ghc-options=-optl-static
etc is actually pretty convenient in some cases. Besides, it's rather surprising that configuration options are ignored oninstall
in the first place.The text was updated successfully, but these errors were encountered: