Skip to content

Override compiler version from a snapshot #836

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

Closed
snoyberg opened this issue Aug 23, 2015 · 6 comments
Closed

Override compiler version from a snapshot #836

snoyberg opened this issue Aug 23, 2015 · 6 comments
Milestone

Comments

@snoyberg
Copy link
Contributor

Motivation: wanting to use a different point release, or test out a new GHC HEAD image. Perhaps the syntax could be:

resolver:
snapshot: lts-3.2
ghc: 7.10.3

Splitting off from #816

@snoyberg snoyberg added this to the 0.3.0.0 milestone Aug 23, 2015
@phadej
Copy link
Collaborator

phadej commented Aug 23, 2015

Isn't this possible by setting $PATH right, and using --skip-ghc-check?

@snoyberg
Copy link
Contributor Author

Yes, but this would have the advantage that it would be explicit in the
config file, setup would work, and stack could prevent you from
accidentally using the wrong GHC.

On Sun, Aug 23, 2015, 8:21 PM Oleg Grenrus [email protected] wrote:

Isn't this possible by setting $PATH right, and using --skip-ghc-check?


Reply to this email directly or view it on GitHub
#836 (comment)
.

@phadej
Copy link
Collaborator

phadej commented Aug 23, 2015

👍

@phadej
Copy link
Collaborator

phadej commented Aug 23, 2015

Should one consider also command line option? Example usage:

stack --resolver-ghc=7.10.3 --stack-yaml=stack-lts-3.yaml build --test

and similarly --resolver-snapshot (or just --snapshot?) ?

@snoyberg
Copy link
Contributor Author

I'd rather not tbh. It's going to be complicated enough to figure out a
good syntax for the yaml, I doubt we'll come up with something good on the
command line.

On Sun, Aug 23, 2015, 8:40 PM Oleg Grenrus [email protected] wrote:

Should one consider also command line option? Example usage:

stack --resolver-ghc=7.10.3 --stack-yaml=stack-lts-3.yaml build --test

and similarly --resolver-snapshot (or just --snapshot?) ?


Reply to this email directly or view it on GitHub
#836 (comment)
.

@snoyberg
Copy link
Contributor Author

Closed in favor of #863

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

No branches or pull requests

2 participants