mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
fixup: only show "you can rerun" message if the derivation's platform is supported on this machine
This commit is contained in:
parent
0712339912
commit
54aa73b19b
1 changed files with 4 additions and 2 deletions
|
@ -332,8 +332,10 @@ connected:
|
||||||
if (!result.success()) {
|
if (!result.success()) {
|
||||||
if (settings.keepFailed) {
|
if (settings.keepFailed) {
|
||||||
warn(
|
warn(
|
||||||
"The failed build directory was kept on the remote builder due to `--keep-failed`. "
|
"The failed build directory was kept on the remote builder due to `--keep-failed`.%s",
|
||||||
"If the build's architecture matches your host, you can re-run the command with `--builders ''` to disable remote building for this invocation."
|
(settings.thisSystem == drv.platform || settings.extraPlatforms.get().count(drv.platform) > 0)
|
||||||
|
? " You can re-run the command with `--builders ''` to disable remote building for this invocation."
|
||||||
|
: ""
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
throw Error("build of '%s' on '%s' failed: %s", store->printStorePath(*drvPath), storeUri, result.errorMsg);
|
throw Error("build of '%s' on '%s' failed: %s", store->printStorePath(*drvPath), storeUri, result.errorMsg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue