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

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

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

@bitemyapp
Copy link
Contributor Author

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

@mgsloan
Copy link
Contributor

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 as completed Feb 1, 2017
@bitemyapp
Copy link
Contributor Author

@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
Development

No branches or pull requests

3 participants