Merge pull request #730 from NixOS/flake

Flake support
This commit is contained in:
Eelco Dolstra
2020-04-07 11:18:38 +02:00
committed by GitHub
16 changed files with 609 additions and 387 deletions

View File

@ -103,7 +103,7 @@ struct Evaluator
}
if (evalOne && seen.empty()) {
printError("the specified jobset does not exist");
printError("the specified jobset does not exist or is disabled");
std::_Exit(1);
}
@ -458,14 +458,15 @@ int main(int argc, char * * argv)
return true;
});
if (!args.empty()) {
if (args.size() != 2) throw UsageError("Syntax: hydra-evaluator [<project> <jobset>]");
evaluator.evalOne = JobsetName(args[0], args[1]);
}
if (unlock)
evaluator.unlock();
else
else {
if (!args.empty()) {
if (args.size() != 2) throw UsageError("Syntax: hydra-evaluator [<project> <jobset>]");
evaluator.evalOne = JobsetName(args[0], args[1]);
}
evaluator.run();
}
});
}