-
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
Use global --resolver option parsing for stack init #1588
Comments
Makes sense! |
|
Ah, I missed this point earlier. The init options have changed a bit with PR #1583 though. --resolver can now be specified with --solver. So we have to take care of --prefer-lts and --prefer-nightly only, but that does not change the order of effort.
|
stack init
implements its own--resolver
command line option which seem to be doing exactly the same thing as the global--resolver
option implementation.We can avoid this duplication by deleting the parsing code in initOptsParser and passing the resolver value from globalOpts in initCmd.
See also #1531.
The text was updated successfully, but these errors were encountered: