src/hydra-eval-jobs/hydra-eval-jobs.cc: .get<std::string> for drvPath

Co-authored-by: Kayla Fire <firestack@users.noreply.github.com>
This commit is contained in:
Graham Christensen 2022-02-21 12:41:21 -05:00 committed by GitHub
parent 290e0653ad
commit 9316544abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -509,9 +509,10 @@ int main(int argc, char * * argv)
done. */
auto localStore = store.dynamic_pointer_cast<LocalFSStore>();
if (gcRootsDir != "" && localStore) {
Path root = gcRootsDir + "/" + std::string(baseNameOf((std::string) job["drvPath"]));
auto drvPath = job["drvPath"].get<std::string>();
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()) {