-
Notifications
You must be signed in to change notification settings - Fork 704
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
Enabling documentation seems to swallow ghc-options passed #10782
Comments
I can't reproduce with Cabal 3.12.1.0, but I do note that After a
|
I agree with @chreekat. My understanding is that ghc-options passed via the CLI do not trigger a rebuild in some cases. I don't know whether this is a cabal issue or just that the invocation to GHC with these new flags decides that it doesn't need to recompile the file:
This looks like a GHC thing and not a cabal issue. |
As I mentioned the bug is on 3.14.1.1; I also cannot reproduce it with 3.12.1. |
Ok, I checked the cabal verbose output and indeed you are right, I'm sorry. My first immediate guess was that the re-compilation with documentation was not complaining. If we invoke with
and if I remove
notice the So I think this is a legitimate bug. |
Indeed, sorry I was so cryptic: I meant to preclude 3.12 on the one hand (so if it's a bug on 3.14, it's probably only on 3.14), and raise a potential separate confounding issue at the same time. Sounds like there are two bugs :) |
Yay, thank you for reproducing. This is madness. @chreekat: is the separate issue already reported in our bug tracker? What keywords to use to search for it? |
Fixed in #10783. However note the comment I made there. |
Describe the bug
Pretty much what is in the title. Enabling documentation seems to swallow additional
ghc-options
being passed (either on command line or incabal.project
).To Reproduce
Steps to reproduce the behavior:
cabal-test.cabal
:in the
app/Main.hs
:Run
Expected behavior
The build should fail with unused import. Instead, not even a warning is printed.
System information
cabal
: 3.14.1.1ghc
: 9.6.6 (tested with 9.8.4 as well)The text was updated successfully, but these errors were encountered: