-
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
Have something like "stack install --use-stack-yaml-from hackage-pkg"? #2122
Comments
Slightly related: #2371 was opened under the assumption that stack should use the flag settings in the stack.yaml included in an sdist tarball. |
Due to stack install pkg ignoring the stack.yaml shipped with pkg, I have to tell my users not to use stack install pkg, and instead get the source themselves and stack install it. This is despite the pkg in question being in stackage. |
@joeyh Good to know, bumping priority to P2. I'm thinking that the resolution to this would look something like:
Would that be sufficient? |
Michael Sloan wrote:
Seems reasonable. see shy jo |
For situations like #2039 , where the user does
stack install a-non-stackage-hackage-package
, the issue is that we don't know what package versions to use for things outside our resolver. As discussed in that issue, one way to resolve this is to support a--solver
flag and create a temporary sandbox for this particular build.Another approach might be to actually just use the stack.yaml included with the package, if it exists. This
might be a reason to include it by default in sdists: #2105
This way we can directly tell the user how the package author intended for it to be installed.
Open questions: What about multiple stack files?
The text was updated successfully, but these errors were encountered: