-
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 should be more thorough by default #3863
Comments
Makes sense to me. In favor of deprecating |
Stupid question: with this enhancement, will |
@adrianwong Nope, the |
I can try my hand at this one if no one else is doing it yet |
Hey @mgsloan, do you mean to just add a warning in the cli when the |
@vanceism7 I believe I meant the latter - that It is possible that might not be an expected behavior change. Perhaps it would be safer to require specifying either |
The behaviour of It is still not clear from the docs what
Also Line 57 in ac2c759
should point to |
Yea, the main issue I was thinking about is preserving backward compatibility. But I think in general it makes sense to use a |
@simonmichael Would you please confirm that this would resolve your issue? |
Hi @dbaynard, I think:
|
After rereading this, I'll qualify: my first three points are debatable, perhaps. I'm more confident about the last two. But my main desires are:
If half-cleaning remains the default, printing a note explaining what was cleaned and how to clean more thoroughly could be another option. |
Our team uses stack all day for working on a large project with a lot of dependencies. We occasionally need to do We expect Others may have different preferences. The world won't come to an end for us if we are outvoted and |
This is what See #4480 for further discussion.
There are multiple None of this discussion concerns issues with shared artefacts, e.g. snapshot dependencies. |
Several times I have been caught out by expecting
stack clean
to reset state and fix some transient failure, then finding out that only removing the .stack-work directories was sufficient. And I have only just now discoveredstack clean --full
. In the most recent example two of us spent several hours troubleshooting weird NFData version-skew-ish doctest failures on one machine, whichstack clean
did not fix. Somewhat related: #2278, #2936 and #3152.We were using stack 1.6.3 (and recent HEAD in my case). I don't know how to reproduce the failure state. I expected
clean
to reset state and be pretty much equivalent to starting with fresh clone of the project. Instead the doctest failures persisted until we tried a fresh clone (and then remembered to try manually removing .stack-work). clean's --full flag was not obvious.The text was updated successfully, but these errors were encountered: