You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm runnign 2.6.0 on MacOS and I'm seeing some strange behavior when setting TMPDIR.
Specifically, it appears Nix prefixes my absolute path with /private/, ignores slashes and creates an invalid path.
Steps To Reproduce
Crate simplest default.nix derivation:
echo'{ test = "TEST"; }'> default.nix
Make sure no TMPDIR is set
unset TMPDIR
Attempt to build the derivation. Without error this time.
nix-build --no-out-link
Set TMPDIR to some absolute path.
export TMPDIR=/tmp/test
mkdir -p $TMPDIR
Attempt to build the derivation.
nix-build --no-out-link
See error
error: getting status of '/private/tmptest': No such file or directory
Expected behavior
I'd expect Nix to use my TMPDIR as-is, without trying to modify it, but if it's trying to modify it to prefix it with /private it should at least do it correctly.
nix-env --version output
nix-env (Nix) 2.6.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm runnign
2.6.0
on MacOS and I'm seeing some strange behavior when settingTMPDIR
.Specifically, it appears Nix prefixes my absolute path with
/private/
, ignores slashes and creates an invalid path.Steps To Reproduce
default.nix
derivation:TMPDIR
is setunset TMPDIR
TMPDIR
to some absolute path.Expected behavior
I'd expect Nix to use my
TMPDIR
as-is, without trying to modify it, but if it's trying to modify it to prefix it with/private
it should at least do it correctly.nix-env --version
outputThe text was updated successfully, but these errors were encountered: