mirror of
https://github.com/NixOS/nix.git
synced 2025-12-05 16:41:01 +01:00
Make Headers an optional argument
This commit is contained in:
parent
de86abbf3f
commit
5999978a05
9 changed files with 23 additions and 25 deletions
|
|
@ -145,7 +145,7 @@ static std::shared_ptr<Registry> getGlobalRegistry(ref<Store> store)
|
|||
auto path = settings.flakeRegistry.get();
|
||||
|
||||
if (!hasPrefix(path, "/")) {
|
||||
auto storePath = downloadFile(store, path, Headers {}, "flake-registry.json", false).storePath;
|
||||
auto storePath = downloadFile(store, path, "flake-registry.json", false).storePath;
|
||||
if (auto store2 = store.dynamic_pointer_cast<LocalFSStore>())
|
||||
store2->addPermRoot(storePath, getCacheDir() + "/nix/flake-registry.json");
|
||||
path = store->toRealPath(storePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue