-
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
fails due to missing ghc-pkg (on latest from master)
#4480
Comments
stack clean
fails due to missing ghc-pkgstack clean
fails due to missing ghc-pkg (on latest from master)
Confirmed that I can reproduce this |
Fix is probably to change the behaviour of We don't have The sensible thing would be:
I'd favour the prompts but that leads to issues in scripts. For now, does running |
Prompts with a default and flags for the other would help the scripts. |
@dbaynard I don't understand why do you say that deleting the only one
Currently |
Also see #4385 — I thought that I had already merged it (hence some of my confusion). It changes how |
Hold on, EDIT:
|
Regarding #4385 - I don't quite see what does it change, I only see it adding |
Ah, I see my ambiguity, now.
I was incorrect to say Yes, I thought that if we can't know which Cabal directory to delete, and there is only one directory, we may wish to assume the user wishes to delete whichever directory is there.
Yes — this is the current behaviour, where we use ghc-pkg to identify the correct Cabal directory. Without ghc-pkg, this is not possible in general, but we can get close. In light of this, it may be better not to assume
Sounds good 👍 |
I think this is a great point @dbaynard. I'd be fine with massively simplifying the approach to If someone sees something I don't, please let me know. |
This is odd — I'm writing an integration test for #4385 (I've rebased on to master) and In my test, when I run The
I'm going to update that PR with the broken integration test. |
Hey so just to clarify with everyone, should we actually change |
@dbaynard it looks like a side-effect of |
Keep the split functionality — it is useful to be able to delete artefacts (in So: delete the build artefacts ( How does that sound? |
That sounds good to me. To confirm: that would mean that the |
Yes. It would need to know the |
It looks fine to me too, the main point was about not depending on GHC/Cabal. |
stack clean does not need ghc-pkg (fixes #4480)
looks suspiciously related to #4466
to repro
stack clean
error:
version
The text was updated successfully, but these errors were encountered: