-
Notifications
You must be signed in to change notification settings - Fork 841
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 work vs revisions #770
Comments
Huh, it looks like my previous message didn't go through. stack definitely does support revisions from Hackage. Perhaps you need to run |
What would I need to do if I wanted to have |
That's not supported, but I'm not sure why you'd want to do that. On Thu, Aug 13, 2015, 6:08 PM Konrad [email protected] wrote:
|
I imagine a scenario where latest revision changes dependencies in a way that breaks builds, so one would like a previous version. That's not a common use-case though. |
I don't think stack should make any change here: it's properly reflecting the way upstream Hackage is working. We can question the wisdom of this approach by Hackage (I have in the past), but nonetheless that's the situation we're in. |
@snoyberg I believe revision 1 of MonadRandom-0.3.0.2 broke LTS-2.22. What can be done to fix this? |
I'd report it to Brent, if the build was working previously, this change is On Wed, Oct 14, 2015, 4:30 PM Konrad [email protected] wrote:
|
I reported the issue: byorgey/MonadRandom#15 |
Meantime, what can be done to mitigate such problems in the future? |
The problem's been fixed upstream. For future occurrences: I've added an |
For future reference: f359cbe |
Actually, if you could also test out df54339 (without using |
Difficult to test now that MonadRandom is fixed. As soon as any kind of similar problem will occur, we'll try that. Thank you :) |
Hopefully next time this happens you won't even notice ;-) On Thu, Oct 15, 2015, 4:22 PM Konrad [email protected] wrote:
|
@snoyberg This works for me now (I installed with git yesterday) and I was getting these errors with the random package. |
I'm not sure if it works properly. I'm using stack from master ff45507. When I tried to build a package depending on
Making |
Here is another example where the patch doesn't work (Stack version 1.7.1):
The problem seems to be, that while the above patch makes stack accept the out of range dependency it doesn't make cabal do so too. So cabal fails when it encounters the contradictory dependency bound |
@janpath Ah, yes, this probably means that stack now needs to pass |
Coming from #337 , we set
resolver: ghc-7.10
and specify dependencies inextra-deps
.We had PR'd Kmett's
nats
to relax upper-bound frombase < 4.8
so it would work with GHC 7.10. It's probably worth seeing: ekmett/nats#10 (comment)Anyway.
The issue here is that stack doesn't appear to support revisions (
x-revision
in.cabal
file). How would one specify that want package X.Y.Z revision N?The text was updated successfully, but these errors were encountered: