diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-05-22 23:43:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-05-22 23:43:58 +0200 |
commit | f0d6d67af93b63c1da1809dc7630026624c19b14 (patch) | |
tree | da203598db29600c185432bf5631254859e67a5a /src/libexpr | |
parent | df3f5a78d5ab0a1f2dc9d288b271b38a9b8b33b5 (diff) |
Prevent the global registry from being GC'ed
Issue #2868.
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops/flake.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/primops/flake.cc b/src/libexpr/primops/flake.cc index e2fdf08ca..3c3d5e0c7 100644 --- a/src/libexpr/primops/flake.cc +++ b/src/libexpr/primops/flake.cc @@ -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; } |