Merge pull request #10817 from NixOS/revert-10262-nofailnixshell
Revert "Don't fail if env-vars cannot be written to"
This commit is contained in:
commit
9596defe88
@ -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" || true'';
|
||||
saveEnv = noDepEntry ''export > $TMP/env-vars'';
|
||||
|
||||
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" || true
|
||||
export > "$NIX_BUILD_TOP/env-vars"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user