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

stack upload requires a build plan #400

Closed
meteficha opened this issue Jun 24, 2015 · 3 comments
Closed

stack upload requires a build plan #400

meteficha opened this issue Jun 24, 2015 · 3 comments
Assignees
Milestone

Comments

@meteficha
Copy link
Member

On a package without a stack.yaml, on a machine without GHC 7.8, stack upload doesn't work:

$ stack upload
Using resolver: lts-2.15 from global config file: /home/felipe/.stack/global/stack.yaml
Caching build plan
Populated index cache.    
GHC version mismatched, found 7.10.1 (x86_64), but expected version 7.8.4 (x86_64) (based on resolver setting in /home/felipe/.stack/global/stack.yaml). Try running stack setup

The older stackage upload won't complain:

$ stackage upload
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for fb-persistent-0.3.5...
Source tarball created:
/tmp/stackage-upload-tarball13706/fb-persistent-0.3.5.tar.gz
Uploading /tmp/stackage-upload-tarball13706/fb-persistent-0.3.5.tar.gz... done!

I'm not sure of the implications of not having a valid build plan before uploading.

@DanBurton
Copy link
Contributor

Sounds like a regression to me.

@snoyberg
Copy link
Contributor

Fixed for now I believe, though we'll have to think harder about the right way to solve this once #313 becomes a reality. @meteficha confirmed?

@snoyberg snoyberg added this to the 0.2.0.0 milestone Jun 24, 2015
@meteficha
Copy link
Member Author

I'm take your word for it after reading the commit and seeing it makes sense. Thanks!

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