-
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
stack builds happy again and again #3151
Comments
This appears with at least the following 3 stack versions:
The version 1.3.2 reported to work is:
|
fwiw, i believe this can be reproduced faster with:
however, something very strange is going on, for me at least, when playing around with this, and i can only guess it's related to nix somehow i somehow managed to get happy to build (and not be found to be missing subsequently; i just set up a empty project and just built
nevertheless, i still get the following:
my stack version:
(note: i'm quite naive at nix; i've not used it much) |
I confirm the fact that issue is present on |
Looks like its building happy multiple times during the same build - if that was meant. That triggers other dependencies to be rebuild as well EDIT Seems like its working ok on |
Could this be somehow related to #3178? |
OK, the problem here is the same with The upstream packages are wrong because they do not list their
A workaround is to simply put Why does this work? Because even though there hasn't been a Hackage release with the fix, there has been a Hackage revision that changes the package without changing the version number http://hackage.haskell.org/package/entropy-0.3.7/revisions/, thus triggering different behaviour even though the version is apparently the same. In my opinion this practice of non-maintainers silently fixing up other people's packages is highly confusing. and has cost us lots of hours to figure out what would have taken 5 minutes if there had been a proper version bump. For This problem exists for all built tools that use Hackage, be it To me the solution is clear: We should stop silently fixing packages on Hackage, and instead make proper fixed upstream releases and Hackage uploads. |
|
@domenkozar The wording might be slightly confusing for other readers:
|
The comment about |
I've tested this repro with the new extensible-snapshots branch (PR #3249), and I no longer see the behavior of |
Closing now that #3249 is merged. |
Motivated from this build failure on HEAD: * https://travis-ci.org/commercialhaskell/stack/jobs/266365181 Related to #3178. This fix is based on a comments from: * #3178 (comment) * #3151 (comment)
We found a situation where stack seems to build the same thing over and over again.
To reproduce, use this branch: https://github.com/input-output-hk/cardano-sl/tree/vanya (commit
9f57d759
) and build withThe build should fail at the end with a linker error (expected), and building again will build
happy
again:In particular, it says
missing dependencies: happy
even though it seems to have installed it just fine before.I think the reason is that after
happy-1.19.5: copy/register
, I get this:I even checked this with a Ctrl-Z directly after
happy-1.19.5: copy/register
, and still had it not appear in the ghc-pkg.Somebody else reports:
The text was updated successfully, but these errors were encountered: