Prevent the global registry from being GC'ed

Issue #2868.
This commit is contained in:
Eelco Dolstra
2019-05-22 23:43:58 +02:00
parent df3f5a78d5
commit f0d6d67af9
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -139,6 +139,7 @@ std::shared_ptr<FlakeRegistry> EvalState::getGlobalFlakeRegistry()
if (!hasPrefix(path, "/")) {
CachedDownloadRequest request(evalSettings.flakeRegistry);
request.name = "flake-registry.json";
request.gcRoot = true;
path = getDownloader()->downloadCached(store, request).path;
}