use outPath

This commit is contained in:
Tom Bereknyei 2022-01-04 03:43:06 -05:00
parent 77aa769aef
commit d36d77c873
2 changed files with 5 additions and 2 deletions

View file

@ -173,11 +173,14 @@ static void worker(
auto drvPath = drv->queryDrvPath();
auto localStore = state.store.dynamic_pointer_cast<LocalFSStore>();
auto storePath = localStore->parseStorePath(drvPath);
auto outputs = drv->queryOutputs(false);
reply["name"] = drv->queryName();
reply["system"] = drv->querySystem();
reply["drvPath"] = drvPath;
reply["storePath"] = localStore->printStorePath(storePath);
for (auto out : outputs){
reply["outputs"][out.first] = out.second;
}
nlohmann::json meta;
for (auto & name : drv->queryMetaNames()) {

View file

@ -28,7 +28,7 @@ def common_test(extra_args: List[str]) -> None:
built_job = results[0]
assert built_job["attr"] == "builtJob"
assert built_job["name"] == "job1"
assert built_job["storePath"].startswith("/nix/store")
assert built_job["outputs"]["out"].startswith("/nix/store")
assert built_job["drvPath"].endswith(".drv")