This commit is contained in:
Eelco Dolstra 2019-06-03 13:53:22 +02:00
parent 517acb4ca8
commit 9a8880fd28
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);