-
Notifications
You must be signed in to change notification settings - Fork 842
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
Please support Stackage LTS 8.x #3001
Comments
@peti, those bounds are already relaxed, from looking in the Is getting Stack from source, or running a |
One problem with compiling stack with GHC-8.0.2 is mgsloan/store#91. It's probably necessary to release a fixed version of store before stack can be compiled with reasonable memory requirements. |
Ah yes, I did see an OOM on https://travis-ci.org/commercialhaskell/stack/jobs/200976309 for #3003. |
Hackage metadata has also been updated for stack-1.3.2
I've updated the hackage metadata to relax these (and a few other) upper bounds. |
FYI: New store is out and #3009 covers it. |
Why has this issue closed? Stack still doesn't build in the context of LTS-8.x because it doesn't allow compilation against store-0.4.*, which is forced due to store-core-0.4 being part of the LTS-8 package set. Am I missing something? |
Stack does build for LTS-8.x, have you got the latest version? |
|
Note https://github.com/commercialhaskell/stack/blob/v1.4.0/stack.cabal#L276 has no upper bound:
Maybe you're looking at the dependencies on Hackage, which have stricter bounds because we use Either way, I'll relax the upper bound for store on Hackage. |
@borsboom It looks like the metadata change broke the installplan on hackage. It worked fine with the prior setting. See http://104.239.175.197:8080/package/stack#GHC-8.0/stack-1.4.0 The log for the failure is at the bottom of the page |
Maybe you're looking at the dependencies on Hackage.
Yes, I did.
Either way, I'll relax the upper bound for store on Hackage.
Very cool, thank you!
|
wrt my prior comment, if necessary I can try to dig in and find the issue/resolution. |
@alanz: I've reverted the metadata change. I should have tested more carefully before making it. @peti: It turns out that LTS 8.0 didn't include |
Thanks. The benefits of having additional sanity checking out there. |
I can confirm that it is green again at http://104.239.175.197:8080/package/stack |
http://hackage.haskell.org/package/stack-1.4.0 cannot be built within LTS-8.x because it depends on old versions of |
@peti Hmm, that's surprising! The config for building 1.4.0 with ghc 8.0 uses lts-8.0's version of cryptonite, 0.21. Cryptonite's changelog doesn't seem to indicate anything breaking backwards compat in 0.22 - https://github.com/haskell-crypto/cryptonite/blob/master/CHANGELOG.md . HEAD version of stack is using lts-8.5 and doesn't specify cryptonite as an extra dep. |
http://hackage.haskell.org/package/stack-1.4.0 requires |
Oh I see, it's because of using --pvp-bounds when uploading the package, argh! |
#2262 would be really handy for avoiding this sort of thing. In the mean time, I'll update the release process to check for any bounds like this and add explicit upper bounds to the stack.cabal. |
Actually other option would be to stop using |
Alright, I think all the bounds should be adjusted now, and I have a documented process to follow in the future. In addition to |
@borsboom There is still a problem on hackage: http://104.239.175.197:8080/package/stack#GHC-8.0/stack-1.4.0 @peti, How can I reproduce the problem nix has, if I have nixpkgs set up under debian? I want to see if I can come up with something that
I suspect that limiting |
From https://docs.haskellstack.org/en/stable/faq/#i-need-to-use-a-different-version-of-a-package-than-what-is-provided-by-the-lts-haskell-snapshot-im-using-what-should-i-do it seems that As per Line 17 in e714f1d
|
@alanz, Nix has no trouble building |
Thanks. So then the root problem from a hackage point of view is that the constraint on |
|
Except that the ...
extra-deps:
- Cabal-1.24.2.0
- th-utilities-0.2.0.1
- store-0.3
... And I understand that this means that although |
No distribution I am aware of uses stack to build Haskell packages, because stack builds are inherently non-deterministic due to network access, etc. The way builds are run in those systems I am aware of is to execute |
I don't believe that this is the case, it only fetches things that are stable (particular ghc version, particular stackage snapshot). Hackage index updates don't affect package selection. |
Thanks to the wonders of destructive edits on Hackage, they do. A build that succeeds now very well fail after an Hackage update (and vice versa). Anyway, there are many reasons why |
Dudes, is there any intention from your side to make stack compile in an LTS-8-based environment? Or can I just give up trying to distribute this tool and stop worrying? |
The currently released Stack version needs store-0.3, but the master branch has already upgraded to store-0.4 and should only need lts-8.11 packages, so the next version should be fully LTS-8 compatible. That said, no guarantee it will stay that way for for all versions. Stack is an application not a library so we don't put a lot of effort to keep it compatible with a wide range of Haskell library versions since it doesn't need to "coexist" with them (it can just be installed from its own sandbox). We do make sure it can be built using the the latest couple of stable major GHC versions, though. |
The current release of stack, version 1.3.2, cannot be compiled in an LTS-8.x-based environment because of the following restrictions:
directory >=1.2.1.0 && <1.3, hpack >=0.14.0 && <0.16
. Both version constraints can simply be relaxed to include the respective new versions; the build succeeds fine with the newer dependencies.The text was updated successfully, but these errors were encountered: