From a5b986cf33630ac26ffd6ab7b8b432272960a6f5 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 4 Aug 2015 08:10:47 -0400 Subject: [PATCH] Only pass the first value of each input in the inputs argument Multiple alts are on their way out --- src/hydra-eval-jobs/hydra-eval-jobs.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hydra-eval-jobs/hydra-eval-jobs.cc b/src/hydra-eval-jobs/hydra-eval-jobs.cc index 4877520a..a6428d82 100644 --- a/src/hydra-eval-jobs/hydra-eval-jobs.cc +++ b/src/hydra-eval-jobs/hydra-eval-jobs.cc @@ -257,9 +257,7 @@ int main(int argc, char * * argv) state.mkAttrs(*inputsSet, autoArgs_.size()); for (auto & i : autoArgs_) { Symbol inputName = state.symbols.create(i.first); - Value * inputAttr = state.allocAttr(*inputsSet, inputName); - state.mkList(*inputAttr, i.second.size()); - int altIndex = 0; + bool first = true; for (auto & j : i.second) { Value * v = state.allocValue(); if (j[0] == 'E') @@ -267,7 +265,10 @@ int main(int argc, char * * argv) else mkString(*v, string(j, 1)); autoArgs[inputName].push_back(v); - inputAttr->list.elems[altIndex++] = v; + if (first) { + inputsSet->attrs->push_back(Attr(inputName, *v)); + first = false; + } } } Symbol sInputs = state.symbols.create("inputs");