-
Notifications
You must be signed in to change notification settings - Fork 848
Listing flags in stack.yaml gives "Invalid flag specification" #3374
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
Yeah, I recall seeing this distinction in the code. With CLI flags, it does implicit upgrade of packages to being extra-deps. Whereas with the configuration, you need to be explicit about the upgrade of packages to extra-deps. I think this is a reasonable thing to expect, it potentially makes the behavior of flags clearer to the user. Though, if implicit snapshots gets implemented - #3330 - it will probably make sense to drop this requirement. That said, the error should definitely be better than
|
Isn't it better for the upgrade to be implicit? If it's not, every time you want to change the lts version in the EDIT: As a user, I'd expect stack to automatically pick the matching lts versions of the mentioned packages. |
Yeah, that's reasonable. At the minimum, should have the error message give the line to add to |
I just noticed this issue in the Haskell Weekly newsletter. I may have accidentally implemented this already on master, thinking that the requested behavior was the current behavior in 1.5 (which apparently it isn't). So before anyone jumps in to implement, simply testing against master would be good. |
Yes, it's implemented in master. NOTE: Maybe someone should add this to the unreleased changes |
EDIT: Sorry for the messed up issue history. |
Uh oh!
There was an error while loading. Please reload this page.
I'd expect listing the flags in
stack.yaml
as into has the same effect as
However, the first one fails with "Invalid flag specification" and wants me to add library1 and library2 to the extra-deps field, while the second one succeeds.
EDIT: This happens with
stack version 1.5.1
on Windows, and I'll try it on Linux too.The text was updated successfully, but these errors were encountered: