mirror of
https://github.com/NixOS/nix
synced 2025-07-02 09:21:47 +02:00
Hack to get SSH error messages from build-remote
E.g. cannot build on 'ssh://mac1': cannot connect to 'mac1': bash: nix-store: command not found cannot build on 'ssh://mac2': cannot connect to 'mac2': Host key verification failed. cannot build on 'ssh://mac3': cannot connect to 'mac3': Received disconnect from 213... port 6001:2: Too many authentication failures Authentication failed.
This commit is contained in:
parent
78d0c72b52
commit
1aca195e52
4 changed files with 33 additions and 7 deletions
|
@ -652,6 +652,11 @@ HookInstance::HookInstance()
|
|||
if (dup2(builderOut.writeSide.get(), 4) == -1)
|
||||
throw SysError("dupping builder's stdout/stderr");
|
||||
|
||||
/* Hack: pass the read side of that fd to allow build-remote
|
||||
to read SSH error messages. */
|
||||
if (dup2(builderOut.readSide.get(), 5) == -1)
|
||||
throw SysError("dupping builder's stdout/stderr");
|
||||
|
||||
Strings args = {
|
||||
baseNameOf(settings.buildHook),
|
||||
std::to_string(verbosity),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue