Skip to content

Commit 54aa73b

Browse files
committed
fixup: only show "you can rerun" message if the derivation's platform is supported on this machine
1 parent 0712339 commit 54aa73b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/build-remote/build-remote.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ static int main_build_remote(int argc, char * * argv)
332332
if (!result.success()) {
333333
if (settings.keepFailed) {
334334
warn(
335-
"The failed build directory was kept on the remote builder due to `--keep-failed`. "
336-
"If the build's architecture matches your host, you can re-run the command with `--builders ''` to disable remote building for this invocation."
335+
"The failed build directory was kept on the remote builder due to `--keep-failed`.%s",
336+
(settings.thisSystem == drv.platform || settings.extraPlatforms.get().count(drv.platform) > 0)
337+
? " You can re-run the command with `--builders ''` to disable remote building for this invocation."
338+
: ""
337339
);
338340
}
339341
throw Error("build of '%s' on '%s' failed: %s", store->printStorePath(*drvPath), storeUri, result.errorMsg);

0 commit comments

Comments
 (0)