Skip to content

Commit

Permalink
local-derivation-goal.cc: Reuse defaultTempDir()
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Mar 23, 2024
1 parent b9e7f5a commit fd31945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/build/local-derivation-goal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ void LocalDerivationGoal::runChild()

/* The tmpDir in scope points at the temporary build directory for our derivation. Some packages try different mechanisms
to find temporary directories, so we want to open up a broader place for them to dump their files, if needed. */
Path globalTmpDir = canonPath(getEnvNonEmpty("TMPDIR").value_or("/tmp"), true);
Path globalTmpDir = canonPath(defaultTempDir(), true);

/* They don't like trailing slashes on subpath directives */
if (globalTmpDir.back() == '/') globalTmpDir.pop_back();
Expand Down

0 comments on commit fd31945

Please sign in to comment.