-
Notifications
You must be signed in to change notification settings - Fork 696
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
ghc-options applies to all dependencies, not just local packages #3883
Comments
My intuition is that the second option ought to work, so we should fix it if it doesn't. Related: I've long wanted a |
The prog options should apply only to local packages, not all deps, just as all other command line or config top level options do. |
Ah, turns out this is a duplicate of #3891 . |
This is still a bug. |
See also #3720 |
Bumping priority, this is pretty major and makes top-level ghc-options unusable. |
Interesting one. I'd like to take a look and see if I can help fix this. |
Thanks @omefire, much appreciated! |
Hey @omefire, any progress / anything we can do to help? |
@ezyang I've been busy with moving to California and haven't had time to work on it. I'll get back to it by Friday evening or Saturday morning. |
I wasn't able to reproduce this bug. Here's what I did:
Instead of rebuilding the package and all its dependencies ( |
Well, the original bug report was referring to ghc-options in cabal.project. What if you put it there? |
Ok, I wasn't aware of those two different files. can you point me to any documentation regarding cabal.project or project.cabal files ? and what the differences between them are ? |
@23Skidoo It will be great if this issue can be prioritized. Because of this we cannot use |
I don't think this is high priority as there is a workaround by explicitly listing the packages
e.g. Yet, it might be good idea to go through https://github.com/haskell/cabal/issues?q=is%3Aopen+is%3Aissue+label%3A%22priority%3A+high+%3Afire%3A%22 as there are not so much of those, and some seems to be outdated (by v2-build e.g.) |
Note how |
@phadej But what if I don't want to introduce a separate file just to build my package on CI with |
IMO if you're using |
I favour the approach where you use |
@phadej thanks for pointing out the workaround. I was not aware of it. This is useful. |
A problem with the current workaround is that it’s impossible to list out all local packages in the global |
What are the architectural or man power blockers here ? |
@lexi-lambda agreed - this would be great for tooling as well, since certain tools like hsinspect require plugins to be enabled in order to gather the correct data. Obviously committing build-tool specific details to source is a bad idea, but without being able to support flags and options with some global config or Just so it doesn't like I'm complaining at developers, I'm available to discuss this more in depth and contribute code towards this. Just point me in the right direction 😄 |
@ezyang agree!
@phadej disagree! @hvr & co, instead of pointing fingers at others, lobbying against other peoples projects and hampering competition, please put your effort into producing working software yourself! |
Or more broadly: what contributor support or user feedback is needed to
help correctly triaging and assessing priorities?
…On Mon, Aug 31, 2020 at 9:17 AM Simon Hengel ***@***.***> wrote:
Bumping priority, this is pretty major and makes top-level ghc-options
unusable.
@ezyang <https://github.com/ezyang> agree!
I don't think this is high priority as there is a workaround by explicitly
listing the packages
@phadej <https://github.com/phadej> disagree!
@hvr <https://github.com/hvr> & co, instead of pointing fingers at
others, lobbying against other peoples projects and hampering competition,
please put your effort in producing working software yourself!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3883 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQXXVMJMA6SETDFCUBLSDOPHFANCNFSM4CQN65FA>
.
|
After #7973, |
We don't care to detect warnings in dependencies. This commit implements the workaround recommended here: haskell/cabal#3883 (comment)
With traditional build, I would use
If I try the same with
new-build
, it starts to rebuild every single dependency; presumably because it considers the compiler flags for all dependencies to have changed. I tried to dobut although it doesn't complain about the
ghc-options
inside thepackage
section, it doesn't seem to take it into account either; no dump files get created. What is the right approach?edit by @23Skidoo: Currently recommended workaround is to add a
cabal.project
that enablesghc-options
for each package separately:Cabal's own CI uses this approach.
The text was updated successfully, but these errors were encountered: