-
Notifications
You must be signed in to change notification settings - Fork 29
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
Executable named git not found on path #11
Comments
Seems like something is using pure nix-shell resulting into |
I've managed to reproduce. Short term fix is
Long term fix would be for stack to include git inside the shell |
Relevant upstream issue: commercialhaskell/stack#2089 |
Upstream PR: commercialhaskell/stack#3205 |
Upstream has merged the PR, meanwhile you can use the workaround :) |
This has been released upstream in Stack 1.5, so I'm closing this. |
On a nixos machine I'm seeing that having the following in
~/.stack/config.yaml
causes a runtime failure.From outside a nix-shell:
The cited line corresponds to the
stack list-dependencies --system-ghc
call. Adding an explicit--nix
to the call doesn't seem to help, and neither does removing--system-ghc
. The only thing that seems to help is removing the global stack configuration setting enabling nix.Running the following manually worked just fine, even with nix integration globally enabled. It seems PATH rewriting is happening only when
stack
is invoked fromstack2nix
.Happy to have narrowed in on the issue a little. It's happened sporadically, on various test machines and I've only now pinned it to the nix global integration setting in ~/.stack/config.yaml.
The text was updated successfully, but these errors were encountered: