1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 04:56:01 +01:00

Merge pull request #87 from DeterminateSystems/disable-builders-message-only-on-buildable-platform

fixup: only show "you can rerun" message if the derivation's platform is supported on this machine
This commit is contained in:
Cole Helbling 2025-06-03 18:03:54 +00:00 committed by GitHub
commit 2a96ae22d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -332,8 +332,10 @@ connected:
if (!result.success()) {
if (settings.keepFailed) {
warn(
"The failed build directory was kept on the remote builder due to `--keep-failed`. "
"If the build's architecture matches your host, you can re-run the command with `--builders ''` to disable remote building for this invocation."
"The failed build directory was kept on the remote builder due to `--keep-failed`.%s",
(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);