Don't fail if env-vars cannot be written to
env-vars is a debugging aid, see
3e5dbb2433
for a rationale for this change.
This commit is contained in:
parent
d34f5b6570
commit
774f74b875
2 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ let inherit (builtins) head tail trace; in
|
|||
|
||||
doDump = n: noDepEntry "echo Dump number ${n}; set";
|
||||
|
||||
saveEnv = noDepEntry ''export > $TMP/env-vars'';
|
||||
saveEnv = noDepEntry ''export > "$TMP/env-vars" || true'';
|
||||
|
||||
doDumpBuildInputs = noDepEntry (''
|
||||
echo "${toString realBuildInputs}"
|
||||
|
|
|
@ -450,7 +450,7 @@ substituteAllInPlace() {
|
|||
# the environment used for building.
|
||||
dumpVars() {
|
||||
if [ "$noDumpEnvVars" != 1 ]; then
|
||||
export > "$NIX_BUILD_TOP/env-vars"
|
||||
export > "$NIX_BUILD_TOP/env-vars" || true
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue