-
Notifications
You must be signed in to change notification settings - Fork 843
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 init could accept explicit versions #1370
Comments
Makes sense! |
With the changes in pull request #1583 you can achieve this by putting your preferred resolver in stack.yaml and |
@harendra-kumar - that doesn't help if I don't have a |
You can, however do To me, this seems to handle the usecase nicely. I wouldn't be opposed to adding a |
As soon as it involves the step "edit the stack.yaml" then it's no longer really suitable for running automatically on a buildbot for my use case, and I'd have to go and create a manual stack file, which is a bit of a shame. But maybe that's not a use case you support. |
#1583 does everything possible to make stack init succeed. With that merged you can just use |
Ah, awesome :) - in that case I think there is enough to consider this fixed. |
For my test suite, I run things like hlint through
stack init
thenstack build
. At the moment, haskell-src-exts is not correct in the latest lts, so stack init fails. I would like to do:Whether resolver takes package names, or I use
--extra haskell-src-exts-1.17.0
doesn't matter, but it would be nice toinit
with explicit constraints for when stack otherwise fails.The text was updated successfully, but these errors were encountered: