forked from lix-project/hydra
Doh
This commit is contained in:
parent
517acb4ca8
commit
9a8880fd28
|
@ -250,10 +250,10 @@ int main(int argc, char * * argv)
|
|||
auto vFlake = state.allocValue();
|
||||
callFlake(state, resolveFlake(state, flakeRef, AllPure), *vFlake);
|
||||
|
||||
auto vProvides = (*vFlake->attrs->get(state.symbols.create("provides")))->value;
|
||||
state.forceValue(*vProvides);
|
||||
auto vOutputs = (*vFlake->attrs->get(state.symbols.create("outputs")))->value;
|
||||
state.forceValue(*vOutputs);
|
||||
|
||||
auto aHydraJobs = vProvides->attrs->get(state.symbols.create("hydraJobs"));
|
||||
auto aHydraJobs = vOutputs->attrs->get(state.symbols.create("hydraJobs"));
|
||||
if (!aHydraJobs)
|
||||
throw Error("flake '%s' does not provide any Hydra jobs", flakeRef);
|
||||
|
||||
|
|
Loading…
Reference in a new issue