-
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 clean command should not go out stubbornly downloading things #4181
Comments
Here's part of a very frustrating daily life using stack:
|
@Renzhi #3510 is a really unfortunate issue (no clue myself what to do there). It seems stack is trying to setup GHC, does passing Maybe Stack will insist on having a properly setup environment even for |
Thing is, for this specific project, I am very sure that the GHC (and ghc-tinfo6 and all the required packages) are all in ~/.stack and all compiled properly, because it's a very old project that used 8.0.2, and it will not be upgraded to new version of GHC because of some other requirements. And I have a couple of projects that used 8.2.2 (which also have all the packages built), and I'm trying out new things with 8.4.3, I'm not sure what I have done to trigger that download-and-rebuild craze, probably something to do with 8.4.3, or some intero thing (as intero does not build with 8.4.3). But it really should not mess with any other versions, that's the whole point of reproducibility, as far as I can understand. And now, I'm not sure what a clean state consists of for stack anymore. That's why I recently forked the stack codes to try to understand its internal logic. I'll try to set up a new environment to see if I can find a consistent way to reproduce this problem, after some projects currently on hands, that is. I just want to say, you guys have done a really good job with Stack, now if Stack could be more reliable in http connection, that would be perfect. At least, it would make this issue less of an issue. |
@dbaynard Unfortunately was busy with some projects recently, didn't have time to keep up with this one yet :( |
This is just waiting on me submitting a PR to fix the integration test |
|
Thanks, @snoyberg |
The stack clean command should be really simple: Clean up the object files in the project.
But what it does is, start up and sit there, pondering about life for a long time, and then decide that it wants to download a bunch things and rebuild. But it keeps getting connection timeout issue, even if curl can perfectly fetch the package.
Even if you have just upgraded stack, the stack clean should just be a simple command to do the clean up.
The text was updated successfully, but these errors were encountered: