-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
NIX_BIN_PREFIX: unbound variable #70
Comments
This is set here: Line 4 in 04f80bf
Do you have by chance anything in your .envrc that unsets NIX_BIN_PREFIX ?
|
I am not sure about your question. I use Line 145 in 04f80bf
Most of my Does that help? |
Can you put |
Here is the result of my first and in depth investigation:
Sorry for not doing deep investigation earlier. If you aggree with that change I can create a PR for it on nixpkgs repo. |
The other alternative might be changing
to
(Note the missing |
yes please. |
See https://github.com/NixOS/nixpkgs/pull/114622/files#r584597612 |
* Reason: statically set `${NIX_BIN_PREFIX}` within generated `direnvrc`. * Before it only replaced the `-z ${NIX_BIN_PREFIX:-}` check which therefore never was `true`. So, also `NIX_BIN_PREFIX` never got set such that its usage later always failed execution with `NIX_BIN_PREFIX: unbound variable`. With the fix, the line containing the check will no longer be replaced. * Solves nix-community/nix-direnv#70 * See also discussion on NixOS#114622 Signed-off-by: Andreas Schmid <service@aaschmid.de>
Since version 1.2.3 I get the following error
It works with version 1.2.1.
My system info is
Which other information are required?
I haven't investigated further yet, but if you have a tip for me how to fix, I can also try to provide a PR
The text was updated successfully, but these errors were encountered: