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

Allow targets to override snapshot versions? #1261

Closed
mgsloan opened this issue Oct 31, 2015 · 1 comment
Closed

Allow targets to override snapshot versions? #1261

mgsloan opened this issue Oct 31, 2015 · 1 comment

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Oct 31, 2015

Thanks to zedbourbaki in #haskell IRC for bringing this up. If you try to override a package version that's in the resolver, via stack install, it refuses:

mgsloan@computer:~$ stack install hmatrix-0.17.0.1
Run from outside a project, using implicit global config
Using resolver: lts-3.10 from global config file: /home/mgsloan/.stack/global/stack.yaml
Error parsing targets: Specified target version 0.17.0.1 for package hmatrix does not match snapshot version 0.16.1.5

This is a pretty good message, but particularly when using the global project, to me it makes sense to implicitly make this into an extra-dep. Some of the checkboxes on #272 seems to suggest that this was intended at some point:

  • To force a specific version of a package to be installed, can run stack install foo-1.2.3
  • For ease of use, can provide stack install foo:latest to ignore whatever's in the snapshot
@mgsloan mgsloan added this to the P3: Optional milestone Oct 31, 2015
@borsboom
Copy link
Contributor

borsboom commented Nov 3, 2015

I agree, seems like that should work based on #272.

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

2 participants