From 9316544abf53183fa7149b272aed054d0457697e Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Mon, 21 Feb 2022 12:41:21 -0500 Subject: [PATCH] src/hydra-eval-jobs/hydra-eval-jobs.cc: .get for drvPath Co-authored-by: Kayla Fire --- src/hydra-eval-jobs/hydra-eval-jobs.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hydra-eval-jobs/hydra-eval-jobs.cc b/src/hydra-eval-jobs/hydra-eval-jobs.cc index 897956bf..44a273a9 100644 --- a/src/hydra-eval-jobs/hydra-eval-jobs.cc +++ b/src/hydra-eval-jobs/hydra-eval-jobs.cc @@ -509,9 +509,10 @@ int main(int argc, char * * argv) done. */ auto localStore = store.dynamic_pointer_cast(); if (gcRootsDir != "" && localStore) { - Path root = gcRootsDir + "/" + std::string(baseNameOf((std::string) job["drvPath"])); + auto drvPath = job["drvPath"].get(); + Path root = gcRootsDir + "/" + std::string(baseNameOf(drvPath)); if (!pathExists(root)) - localStore->addPermRoot(localStore->parseStorePath((std::string) job["drvPath"]), root); + localStore->addPermRoot(localStore->parseStorePath(drvPath), root); } if (!brokenJobs.empty()) {