Skip to content
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

Script interpreter can't add extra-deps to snapshot #2879

Closed
bitemyapp opened this issue Dec 27, 2016 · 4 comments
Closed

Script interpreter can't add extra-deps to snapshot #2879

bitemyapp opened this issue Dec 27, 2016 · 4 comments

Comments

@bitemyapp
Copy link
Contributor

@bitemyapp bitemyapp commented Dec 27, 2016

Following does not work:

#!/usr/bin/env stack
-- stack --resolver lts-7.10 --install-ghc runghc --package turtle --package FailureT-15778.1

{-# LANGUAGE OverloadedStrings #-}

import Turtle

main = echo "Hello World!"
@decentral1se
Copy link
Member

@decentral1se decentral1se commented Dec 30, 2016

FailureT-15778.1 isn't on that Stackage LTS, so this is expected?

@bitemyapp
Copy link
Contributor Author

@bitemyapp bitemyapp commented Dec 30, 2016

That's my point, I specified the version. That's why I said extra-deps in the title.

mgsloan added a commit that referenced this issue Feb 1, 2017
@mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Feb 1, 2017

The issue is actually that the script interpreter was running things with silent verbosity. I've changed it to output error logging, so now the following is outputted:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for FailureT-15778.1:
    mmtl must match -any, but the stack configuration has no specified version (latest applicable is 0.1)

You may also want to try the 'stack solver' command
Plan construction failed.
@mgsloan mgsloan closed this Feb 1, 2017
@bitemyapp
Copy link
Contributor Author

@bitemyapp bitemyapp commented Feb 1, 2017

@mgsloan eggscellent, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.