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();
|
auto vFlake = state.allocValue();
|
||||||
callFlake(state, resolveFlake(state, flakeRef, AllPure), *vFlake);
|
callFlake(state, resolveFlake(state, flakeRef, AllPure), *vFlake);
|
||||||
|
|
||||||
auto vProvides = (*vFlake->attrs->get(state.symbols.create("provides")))->value;
|
auto vOutputs = (*vFlake->attrs->get(state.symbols.create("outputs")))->value;
|
||||||
state.forceValue(*vProvides);
|
state.forceValue(*vOutputs);
|
||||||
|
|
||||||
auto aHydraJobs = vProvides->attrs->get(state.symbols.create("hydraJobs"));
|
auto aHydraJobs = vOutputs->attrs->get(state.symbols.create("hydraJobs"));
|
||||||
if (!aHydraJobs)
|
if (!aHydraJobs)
|
||||||
throw Error("flake '%s' does not provide any Hydra jobs", flakeRef);
|
throw Error("flake '%s' does not provide any Hydra jobs", flakeRef);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue