-
Notifications
You must be signed in to change notification settings - Fork 7
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
integer-gmp-1.0.1.0 needlessly requires Cabal 2 #120
Comments
One issue here is that Hackage prohibits revisions downgrading |
Thank you for moving the discussion here.
As various people have already stated, Stack 1.5.1 + GHC 8.2 does not constitute an officially supported configuration (even if it happens to work accidentally). However, this can be easily fixed by |
Seems like relaxing the I'm not sure what you mean by "officially supported". Who is an official in this situation? Stack 1.5.1 worked with GHC 8.2 for many months until you broke it on December 4. Yes, Stack users can work around this problem by doing |
Mostly because of enterprise users who can be slow to upgrade, I think, and the fact that it breaks pre-Dec 04 snapshots that used to work. IMO, a server-side fix makes sense in this case, like the one we did for |
Enterprise users should ask for stack 1.5.2 first (
…Sent from my iPhone
On 10 Dec 2017, at 17.03, Mikhail Glushenkov ***@***.***> wrote:
Mostly because of enterprise users who can be slow to upgrade, I think, and the fact that it breaks pre-Dec 04 snapshots that used to work. IMO, a server-side fix makes sense in this case, like the one we did for cabal-install not so long ago (see haskell/cabal#4899).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
To expand the previous:
|
IMO a point release of Stack from the 1.5 branch is also a good idea, but that's a separate issue and I think we can provide a server-side fix for the users of 1.5.1 as well. |
@phadej Your understanding is incorrect, please read the blog post where I explain the situation. https://www.snoyman.com/blog/2017/12/stack-and-nightly-breakage I am opposed to revisions, but that's a cost that's already sunk. Using it to fix this issue will be fine and introduce no further breakage, so I don't have an objection to yet another revision appearing on Hackage. |
The irony really isn't lost on me that it's the very people that have been vehemently opposing Hackage revisions to the point of threatening to fork Hackage are the same ones equally violently demanding a Hackage revision to be made. But I'm pleased that you've come around on the merit of Hackage revisions. While I remain convinced that from a technical POV this particular revision has little merit, I've just revised https://hackage.haskell.org/package/integer-gmp-1.0.1.0/revisions/ I would appreciate if in return you could see to it that the vendetta against us is relaxed or even better yet called off completely. |
That revision doesn't fix the problem because it still requires |
That's all that can be accomplished with revisions. They're deliberately limited in scope. The version can only be changed between 1.10 and 1.21, because the spec didn't change over that range. My understanding from other discussions was that only the bounds needed to be changed, and not the version, in order for stack to work. If this isn't the case, then that's too bad, but the cabal file version is, by design, not something that can be modified too severely by the revisions process. |
@snoyberg Can you confirm that? Cabal 1.24 can parse files with unsupported |
Ah, you're right. I spoke too soon. That revision fixes the problem as far as However, as leon predicted out on Trac, now
It uses
https://hackage.haskell.org/package/base-4.10.1.0/revision/0.cabal |
As far as I understand it, this only affects the more recent GHC 8.2.2 based nightlies. I doubt that conservative enterprise users which haven't yet upgraded to Stack 1.6.1 would rely on such bleeding edge unstable nightly snapshots. |
IMO if 8.2.2 snapshots also used to work, even if briefly, we should also make a Hackage revision for base-4.10.1.0. However, I think it'll be fine if GHC 8.2.3 and 8.4.1 will require upgrading Stack. |
I agree with @23Skidoo. Some snapshots used to work. They don’t anymore. It would be nice if they could work again. For future versions of GHC, I won’t be happy about seeing (It is hard for me to follow this thread because @hvr blocked me on GitHub. I do not get notifications about his comments. Sorry for the slow reply.) |
I think we should consider this fixed at this point. The main issue at
stake was that it broke 8.2.1 nightlies that used to work, and which people
had come to rely on. In general, nightlies are allowed to be somewhat
unstable. Given the heat generated thus far, and that things are in a "good
enough" state, I'd rather just let things cool off and move forward.
…On Sun, Dec 10, 2017 at 1:36 PM, Taylor Fausak ***@***.***> wrote:
I agree with @23Skidoo <https://github.com/23skidoo>. Some snapshots used
to work. They don’t anymore. It would be nice if they could work again.
For future versions of GHC, I won’t be happy about seeing ^>=
constraints, but it shouldn’t cause any problems.
(It is hard for me to follow this thread because @hvr
<https://github.com/hvr> blocked me on GitHub. I do not get notifications
about his comments. Sorry for the slow reply.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEt2TEGlOujysIn_7XNbRtTVj3OSRXrks5s_CS6gaJpZM4Q8g3X>
.
|
Stackage had 6 working nightly snapshots with GHC 8.2.2 (starting with 2017-11-25) before they were broken on December 4. |
Yay, thanks! Consider the vendetta on my part to be essentially gone. Still a potential sore spot, though I will try not to be so reactionary in the future. BTW, vendetta was my personal opinion, not a representation of FP Complete, please do not misrepresent my comments on twitter. That's kinda shitty. Would still like to see cassava fixed, but I suppose that's water under the bridge. Sorry for being so intense about it. You can unblock me if you want, hvr , this is exactly the cooperation I was hoping for (though perhaps my approach for it was not quite on point).
Slightly less stable, in that they can make major version bumps between nightly versions, so are more bleeding edge. However, a project building a month ago on a nightly absolutely should not stop building a month later. Again, really glad to see this resolved. I agree that this is evidence for the utility of package revisions. However, it is also potentially evidence that this metadata should not be versioned along with the package itself. IMHO version constraints should always be external to package descriptions, as it inherently needs to be mutable, because you do not have total knowledge at time of publication. I've got further thoughts on this, which I hope to put into a blog post at some point (don't hold your breath though, heh!) |
Hey y'all. I would re-open this, but apparently I can't. These new caret bounds are a still a problem, but now it's because of Should I open a new issue for the |
I believe there are two solutions to the base issue, as discussed above. Either A) use the newest stack, or B) use a nightly snapshot prior to 8.2.2. As discussed above, it seems to me that this suffices. |
Indeed, upgrading Stack is a solution to this problem. So is downgrading to an older resolver. However those are also solutions to the original |
integer-gmp-1.0.1.0
requirescabal-version: 2.0
for its package description even though the only feature it uses is^>=
bounds. Specifically it usesbuild-depends: ghc-prim ^>= 0.5.1.0
instead ofbuild-depends: ghc-prim >= 0.5.1 && < 0.6
.Answering the questions from the contributing guidelines:
The GHC developers maintain
integer-gmp
. In particular HVR seems to be the one making changes to it most of the time. I opened a ticket on GHC's Trac four days ago, but the issue has been known for longer than that. I also pinged HVR on Twitter, but he has blocked me on Twitter since then.https://ghc.haskell.org/trac/ghc/ticket/14558
https://twitter.com/taylorfausak/status/938243186237083649
You can reproduce this issue by doing
stack --resolver nightly-2017-12-01 setup
with Stack < 1.6.1.You can fix this issue by changing the
build-depends
andcabal-version
ininteger-gmp
's package description. ghc/ghc@82aae8cYou can also fix this issue by upgrading to Stack >= 1.6.1.
This is extremely critical. It breaks all users of Stack < 1.6.1 using snapshots that use GHC >= 8.2. In fact, snapshots that used to work (such as
nightly-2017-11-01
) no longer work.Stack broken by latest integer-gmp commercialhaskell/stack#3624
https://www.reddit.com/r/haskell/comments/7hs20y/how_to_fix_stack_unable_to_parse_cabal_file/
The text was updated successfully, but these errors were encountered: