forked from lix-project/nix-eval-jobs
Remove unused output
This commit is contained in:
parent
f8dad73ac8
commit
be59cd8bfb
|
@ -100,14 +100,6 @@ struct MyArgs : MixEvalArgs, MixCommonArgs
|
||||||
|
|
||||||
static MyArgs myArgs;
|
static MyArgs myArgs;
|
||||||
|
|
||||||
static nlohmann::json serializeStorePathSet(StorePathSet &paths, LocalFSStore &store) {
|
|
||||||
auto array = nlohmann::json::array();
|
|
||||||
for (auto & p : paths) {
|
|
||||||
array.push_back(store.printStorePath(p));
|
|
||||||
}
|
|
||||||
return array;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void worker(
|
static void worker(
|
||||||
EvalState & state,
|
EvalState & state,
|
||||||
Bindings & autoArgs,
|
Bindings & autoArgs,
|
||||||
|
@ -205,23 +197,6 @@ static void worker(
|
||||||
localStore->addPermRoot(storePath, root);
|
localStore->addPermRoot(storePath, root);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t downloadSize, narSize;
|
|
||||||
StorePathSet willBuild, willSubstitute, unknown;
|
|
||||||
std::vector<nix::StorePathWithOutputs> paths;
|
|
||||||
StringSet outputNames;
|
|
||||||
|
|
||||||
for (auto & output : outputs) {
|
|
||||||
outputNames.insert(output.first);
|
|
||||||
}
|
|
||||||
paths.push_back({storePath, outputNames});
|
|
||||||
|
|
||||||
localStore->queryMissing(paths,
|
|
||||||
willBuild,
|
|
||||||
willSubstitute,
|
|
||||||
unknown,
|
|
||||||
downloadSize,
|
|
||||||
narSize);
|
|
||||||
|
|
||||||
DrvInfo::Outputs outputs = drv->queryOutputs();
|
DrvInfo::Outputs outputs = drv->queryOutputs();
|
||||||
nlohmann::json out;
|
nlohmann::json out;
|
||||||
for (auto & p : outputs) {
|
for (auto & p : outputs) {
|
||||||
|
@ -229,10 +204,6 @@ static void worker(
|
||||||
}
|
}
|
||||||
job["outputs"] = std::move(out);
|
job["outputs"] = std::move(out);
|
||||||
|
|
||||||
job["builds"] = serializeStorePathSet(willBuild, *localStore);
|
|
||||||
job["substitutes"] = serializeStorePathSet(willSubstitute, *localStore);
|
|
||||||
job["unknown"] = serializeStorePathSet(unknown, *localStore);
|
|
||||||
|
|
||||||
reply["job"] = std::move(job);
|
reply["job"] = std::move(job);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue