-
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 rebuilds pretty-show and few more packages with no apparent reason #4084
Comments
We'll be looking into this. |
Note that it's a better idea for repros to give a commit than a branch. Right now, the vanya branch is pointing at 6c109584a6a7f182334eedc79c063a591626cca9. |
Also, as a side note: due to the extremely large number of extra-deps in this stack.yaml, I'd recommend moving over to a custom snapshot, which will allow for more precompiled cache usage. |
I'm going to start a debug log in this comment. I'll be editing it as I move along. My first step is to confirm that this bug reproduces with the Stack on master. Also, in order to avoid wasting lots of CPU cycles, I'm going to be using the following command as a replacement for step 3 above:
This way I'll keep the same broken state between attempts to play with this bug. I'm also almost certainly going to throw in a I'm still building the absolute latest master, but I've tested with:
I get the following output, indicating that the bug no longer exists:
However, building with Stack 1.7.1 produces the same bug as reported here:
Meaning I'm fairly certain that this bug is already resolved on master. It will take more investigation to determine what change on master could have resolved this. |
I couldn't fetch For me it still unregisters packages that it shouldn't, here's the output of |
It might be helpful to have a minimum example, though it seems that might be tricky. Would you try to produce one, @gromakovsky? |
I was successfully minimizing this example while keeping the bug reproducible, but then I did Probably something bad appeared in |
I suceeded to reproduce it using version 1.6.5 (revision 24ab0d6).
Commit adb0e36ab6be0d0f4c907d1b9fc866e67bcdf673 is the next one in the Once again, after |
OK, it's good that there's a resolution. Thank you for digging around (I editied your commit refs to links so I could follow them). I suspect you're right about something in the I'd recommend @snoyberg's advice: it is worth using a custom snapshot. I'm going to close — do get in touch if there's anything else you'd need, on this. |
General summary/comments (optional)
If I build one package, modify one file there and built it again, for some reason more than one package is rebuilt.
Steps to reproduce
Can be reproduced using this code: https://github.com/serokell/cardano-sl/tree/vanya (
serokell/cardano-sl
repository,vanya
branch).cardano-sl-txp
package:cardano-sl-txp
again:Expected
Only one file is recompiled and the command finishes quickly.
Actual
Stack decides to unregister
cardano-sl-core
,pretty-show
,cardano-sl-crypto-test
and some other packages. Then it builds these packages:Here is the output in
--verbose
mode: https://gist.github.com/gromakovsky/a23b77cb9bcf3cc0e415b9a65f5f422dStack version
Method of installation
I am using version 1.7.1 downloaded from https://github.com/commercialhaskell/stack/releases.
The text was updated successfully, but these errors were encountered: