Only pass the first value of each input in the inputs argument

[?]
Aug 4, 2015, 12:10 PM
MFRA2JX7CIEMPYOWWB2MKV6ZMLCWCF4BFIWKBBSVMKQG3JNJ6DBQC

Dependencies

  • [2] FHXU6346 hydra-eval-jobs: Pass all inputs as 'inputs' arg.
  • [3] 7GKAIP3V Fix build and handling of string inputs starting with a dash
  • [*] 4N5APGRG * Start of a helper tool to evaluate job expressions efficiently.

Change contents

  • replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 260
    [2.164][2.164:321]()
    Value * inputAttr = state.allocAttr(*inputsSet, inputName);
    state.mkList(*inputAttr, i.second.size());
    int altIndex = 0;
    [2.164]
    [3.1469]
    bool first = true;
  • replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 268
    [2.372][2.372:427]()
    inputAttr->list.elems[altIndex++] = v;
    [2.372]
    [3.1820]
    if (first) {
    inputsSet->attrs->push_back(Attr(inputName, *v));
    first = false;
    }