mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Merge pull request #13320 from DeterminateSystems/keep-failed-remote-builders-warning
Clarify that `--keep-failed` with remote builders will keep the failed build directory on that builder
This commit is contained in:
commit
4b8f74b3a3
2 changed files with 11 additions and 1 deletions
|
@ -85,6 +85,7 @@ out="$(nix-build 2>&1 failing.nix \
|
|||
--arg busybox "$busybox")" || true
|
||||
|
||||
[[ "$out" =~ .*"note: keeping build directory".* ]]
|
||||
[[ "$out" =~ .*"The failed build directory was kept on the remote builder due to".* ]]
|
||||
|
||||
build_dir="$(grep "note: keeping build" <<< "$out" | sed -E "s/^(.*)note: keeping build directory '(.*)'(.*)$/\2/")"
|
||||
[[ "foo" = $(<"$build_dir"/bar) ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue