Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/hydra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 517acb4ca855
Choose a base ref
...
head repository: NixOS/hydra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7936a293643a
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jun 3, 2019

  1. Doh

    edolstra committed Jun 3, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    erictapen Kerstin
    Copy the full SHA
    9a8880f View commit details
  2. Copy the full SHA
    7936a29 View commit details
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/hydra-eval-jobs/hydra-eval-jobs.cc
10 changes: 6 additions & 4 deletions src/hydra-eval-jobs/hydra-eval-jobs.cc
Original file line number Diff line number Diff line change
@@ -250,12 +250,14 @@ 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);
aHydraJobs = vOutputs->attrs->get(state.symbols.create("checks"));
if (!aHydraJobs)
throw Error("flake '%s' does not provide any Hydra jobs or checks", flakeRef);

v = *(*aHydraJobs)->value;