Skip to content
Snippets Groups Projects
Commit 9367046f authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

Use regular file GC roots if possible

This makes hydra-eval-jobs create roots as regular files. See
1c208f2b.
parent 5f05197d
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,10 @@ Path addPermRoot(StoreAPI & store, const Path & _storePath, ...@@ -115,7 +115,10 @@ Path addPermRoot(StoreAPI & store, const Path & _storePath,
% gcRoot % rootsDir); % gcRoot % rootsDir);
} }
makeSymlink(gcRoot, storePath); if (baseNameOf(gcRoot) == baseNameOf(storePath))
writeFile(gcRoot, "");
else
makeSymlink(gcRoot, storePath);
} }
/* Check that the root can be found by the garbage collector. /* Check that the root can be found by the garbage collector.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment