mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
build-hook: If there are no machines defined, quit permanently
This commit is contained in:
parent
70581b6363
commit
174b68a2a2
2 changed files with 14 additions and 2 deletions
|
@ -150,6 +150,11 @@ int main (int argc, char * * argv)
|
|||
auto machines = readConf();
|
||||
debug("got %d remote builders", machines.size());
|
||||
|
||||
if (machines.empty()) {
|
||||
std::cerr << "# decline-permanently\n";
|
||||
return;
|
||||
}
|
||||
|
||||
string drvPath;
|
||||
string storeUri;
|
||||
for (string line; getline(cin, line);) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue