Description
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 discovered stack clean --full
. In the most recent example two of us spent several hours troubleshooting weird NFData version-skew-ish doctest failures on one machine, which stack 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.