mirror of
https://github.com/NixOS/nix.git
synced 2025-12-06 00:51:00 +01:00
Remove global fetcher cache
The cache is now part of fetchers::Settings.
This commit is contained in:
parent
7d89e46f65
commit
efcb9e36a9
23 changed files with 93 additions and 54 deletions
|
|
@ -156,7 +156,7 @@ static std::shared_ptr<Registry> getGlobalRegistry(const Settings & settings, re
|
|||
}
|
||||
|
||||
if (!isAbsolute(path)) {
|
||||
auto storePath = downloadFile(store, path, "flake-registry.json").storePath;
|
||||
auto storePath = downloadFile(store, settings, path, "flake-registry.json").storePath;
|
||||
if (auto store2 = store.dynamic_pointer_cast<LocalFSStore>())
|
||||
store2->addPermRoot(storePath, getCacheDir() + "/flake-registry.json");
|
||||
path = store->toRealPath(storePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue