Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBuild breakage due to mtl upper bound #64
Comments
snoyberg
changed the title from
Build breakage due to transformers upper bound
to
Build breakage due to mtl upper bound
May 7, 2014
added a commit
to snoyberg/HTTP
that referenced
this issue
May 7, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mightybyte
May 8, 2014
And like issue #55, the real cause of this problem is the lack of upper bounds on HTTP-4000.0.7, not the presence of upper bounds on the current version of HTTP.
mightybyte
commented
May 8, 2014
|
And like issue #55, the real cause of this problem is the lack of upper bounds on HTTP-4000.0.7, not the presence of upper bounds on the current version of HTTP. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
snoyberg
May 8, 2014
Contributor
If you want to call that the real cause, that's fine. What's the real solution then?
|
If you want to call that the real cause, that's fine. What's the real solution then? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hsenag
May 8, 2014
Member
I've fixed the mtl dep.
Is there anything more I can do about this general problem with the old versions in the HTTP package? Otherwise I guess the remaining issue is one for cabal/hackage, not HTTP.
Pinging @tibbe - do we understand why the version preference you added before isn't helping in this situation?
|
I've fixed the mtl dep. Is there anything more I can do about this general problem with the old versions in the HTTP package? Otherwise I guess the remaining issue is one for cabal/hackage, not HTTP. Pinging @tibbe - do we understand why the version preference you added before isn't helping in this situation? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tibbe
May 8, 2014
Member
I filed a bug against cabal re the preference issue. I think it's due to a
misunderstanding of the desired behavior when the preference support was
implemented.
As for old http package version, you could release patched versions of old
http major releases. This would help a tiny bit as cabal has a soft
preference for newer version. However, today there exists no real mechanism
to fix build breakages due to omitting upper bound.
On May 8, 2014 8:55 AM, "Ganesh Sittampalam" notifications@github.com
wrote:
I've fixed the mtl dep.
Is there anything more I can do about this general problem with the old
versions in the HTTP package? Otherwise I guess the remaining issue is one
for cabal/hackage, not HTTP.Pinging @tibbe https://github.com/tibbe - do we understand why the
version preference you added before isn't helping in this situation?—
Reply to this email directly or view it on GitHubhttps://github.com/haskell/HTTP/issues/64#issuecomment-42518631
.
|
I filed a bug against cabal re the preference issue. I think it's due to a As for old http package version, you could release patched versions of old
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
snoyberg
May 8, 2014
Contributor
@hsenag Thanks for getting the new version onto Hackage.
The reason the version preference doesn't work is documented here: haskell/cabal#1792. AFAICT, there are no plans to actually address that issue, which seems to mean that for the foreseeable future, every time a major version of an HTTP dependency is released, build plans will immediately start failing.
|
@hsenag Thanks for getting the new version onto Hackage. The reason the version preference doesn't work is documented here: haskell/cabal#1792. AFAICT, there are no plans to actually address that issue, which seems to mean that for the foreseeable future, every time a major version of an HTTP dependency is released, build plans will immediately start failing. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hsenag
May 8, 2014
Member
OK, thanks - sounds like it just needs someone to implement the idea in the thread, so if this continues to cause pain perhaps someone will do that.
I don't think I'm willing to be forever maintaining a 4000.0.7 branch of HTTP to keep up to date with the latest code in dependencies, and I don't really want people to be randomly ending up with that old version.
If I could retrospectively fix the upper bounds on hackage, that would be something that's worth the effort.
|
OK, thanks - sounds like it just needs someone to implement the idea in the thread, so if this continues to cause pain perhaps someone will do that. I don't think I'm willing to be forever maintaining a 4000.0.7 branch of HTTP to keep up to date with the latest code in dependencies, and I don't really want people to be randomly ending up with that old version. If I could retrospectively fix the upper bounds on hackage, that would be something that's worth the effort. |
hsenag
closed this
May 8, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
snoyberg
May 8, 2014
Contributor
Changing version bounds after-the-fact is not currently supported by Hackage, and I think the reason is because it's unknown how that may cause breakage for others. But specifically adding stricter bounds seems like it's more likely to cause breakage with the current toolset, so I'd be cautious about moving ahead with that.
|
Changing version bounds after-the-fact is not currently supported by Hackage, and I think the reason is because it's unknown how that may cause breakage for others. But specifically adding stricter bounds seems like it's more likely to cause breakage with the current toolset, so I'd be cautious about moving ahead with that. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hsenag
May 8, 2014
Member
I guess if it is turned on then it would be because the toolset is thought to support it :-) If we'd had the stricter bounds all along the current situation would be much better.
|
I guess if it is turned on then it would be because the toolset is thought to support it :-) If we'd had the stricter bounds all along the current situation would be much better. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tibbe
May 12, 2014
Member
After-the-fact updating of .cabal files (and thus bounds) on Hackage, was implemented by Duncan. Turns out that his implementation had a bug and he hasn't had time to fix it yet.
|
After-the-fact updating of .cabal files (and thus bounds) on Hackage, was implemented by Duncan. Turns out that his implementation had a bug and he hasn't had time to fix it yet. |
snoyberg
referenced this issue
in jcristovao/enclosed-exceptions
May 16, 2014
Closed
Transformers upgrade #2
hsenag
referenced this issue
Aug 23, 2014
Closed
Build failure after network-uri split off from network #74
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hvr
Aug 23, 2014
Member
Btw, what's keeping us now from fixing up all old HTTP package version's known-to-be-wrong cabal meta-data?
(Fwiw, something similar was done for mtl and template-haskell as soon as after-the-fact updating of .cabal files got enabled, as ancient mtl/template-haskell packages also didn't have upper bounds yet)
|
Btw, what's keeping us now from fixing up all old HTTP package version's known-to-be-wrong cabal meta-data? (Fwiw, something similar was done for |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hsenag
Aug 23, 2014
Member
From my point of view,
(1) Figuring out the correct upper bounds for each release
(2) Deciding what I feel about the after-the-fact-editing, as it does seem a bit evil never mind, if it's in general use anyway and people think it works it's not worth worrying about :-)
|
From my point of view, |
snoyberg commentedMay 7, 2014
Reproed on GHC 7.4.2, 7.6.3, 7.8.2. Using cabal-install 1.16 for the first two, 1.18 when using GHC 7.8.
Start with a clean package environment, then run:
Due to inconsistent upper bounds on transformers, the build plan selects HTTP-4000.0.7. At least on GHC 7.4.2, this package install ultimately fails with:
This is the exact same issue as #55. This problem is likely to cause wide-spread breakage until a new version of HTTP is released which is compatible with transformers 0.4.