We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The hook _nix_shell_clean_tmpdir may execute rm -rf $TEMPDIR. Observed on Ubuntu 24.04 and MacOS when using nix with direnv.
_nix_shell_clean_tmpdir
rm -rf $TEMPDIR
This happens when this tmpDir variable is assigned the $TEMPDIR path itself, rather than a temp subdirectory.
tmpDir
$TEMPDIR
The $TEMPDIR is then rm -rfed here
rm -rf
nix/src/nix-build/nix-build.cc
Line 601 in 32becc8
This means processes trying to create temporary files inside $TEMPDIR (such as, for example, docker), will fail.
Fix: This tmpDir variable should never be allowed to be the top-level $TEMPDIR.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The hook
_nix_shell_clean_tmpdir
may executerm -rf $TEMPDIR
. Observed on Ubuntu 24.04 and MacOS when using nix with direnv.This happens when this
tmpDir
variable is assigned the$TEMPDIR
path itself, rather than a temp subdirectory.The
$TEMPDIR
is thenrm -rf
ed herenix/src/nix-build/nix-build.cc
Line 601 in 32becc8
This means processes trying to create temporary files inside $TEMPDIR (such as, for example, docker), will fail.
Fix: This
tmpDir
variable should never be allowed to be the top-level$TEMPDIR
.The text was updated successfully, but these errors were encountered: