-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack install pkg does not honor flag settings in pkg's stack.yaml #2371
Comments
When What seems to matter in this case is that the user's snapshot buildplan, maybe My hypothesis would be, that In any case the snapshot buildplan looks problematic to me because the
|
So my speculation above was pretty much entirely wrong. The real issue is that by not providing a default flag setting in the cabal file, you're implicitly setting the default to The different behavior between
The proper resolution seems to be that you should add a default value of |
Simon Jakobi wrote:
Why? What's the point of having a configuration file if it's not used? see shy jo |
IMO the If Maybe you'd like to chime in on #2122?! |
A user filed a bug http://git-annex.branchable.com/bugs/does_not_build_on_OpenBSD_5.9/ which turned out to be caused by "stack install git-annex" apparently defaulting the xmpp build flag to true, despite the stack.yaml included in the package setting it to false. Meanwhile, "stack install" run inside the unpacked package does honor the stack.yaml.
That seems inconsistent and surprising.
(In my case, the cabal file defines the build flag, but doesn't explicitly set it to true or false.
When cabal is resolving the dependencies, this lets it enable the flag when the necessary dependencies are installed, and disable it otherwise. This had to be overridden in the stack.yaml because that flag pulls in dependencies that need C libraries that may not be available.)
The text was updated successfully, but these errors were encountered: