-
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 does not work correctly with --nix #3468
Comments
That is just part of stack's normal environment setup. There isn't currently an environment type / code to load it that reflects "I need to use Cabal but I don't need GHC". Main commit relevant to this - cfb445 - I suppose that might have regressed nix support. Possibly changes to defaulting to not using system ghc, though IIRC it will default to that for nix. I don't use nix much, from some poor experiences with it I tend to avoid it. Granted, I haven't put in more than just a couple dozen hours trying to wrangle it.
Leaning towards wontfix, I don't see why this matters. Why would you ever want to clean if you don't have a compiler? Would accept a PR that makes loading the full env unnecessary for |
@mgsloan the regression is that Stack should enter the Nix shell when doing |
Updated the first paragraph of my comment above. I think the commit linked there is definitely the cause of the issue. A couple possible solutions:
I'll give it a shot. |
That appears to have fixed it. Thanks! |
Great, merged! Thanks for confirming |
When using nix integration,
stack clean
does not work. I'm not sure if there's any reason it should need GHC at all forclean
, but it exits with aNo compiler found, ...
error message when the user does not have GHC installed in their user profile. Presumably Stack is not performingclean
from within the nix shell, or it should not need GHC at all.EDIT: This is a regression in Stack 1.5. This worked in 1.4.
The text was updated successfully, but these errors were encountered: