mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Move uriSchemes
to *StoreConfig
It is a property of the configuration of a store --- how a store URL is parsed into a store config, not a store itself. Progress towards #10766
This commit is contained in:
parent
57399bfc0e
commit
2aa9cf34dd
14 changed files with 50 additions and 39 deletions
|
@ -51,8 +51,6 @@ struct LocalBinaryCacheStore : virtual LocalBinaryCacheStoreConfig, virtual Bina
|
|||
return "file://" + binaryCacheDir;
|
||||
}
|
||||
|
||||
static std::set<std::string> uriSchemes();
|
||||
|
||||
protected:
|
||||
|
||||
bool fileExists(const std::string & path) override;
|
||||
|
@ -121,7 +119,7 @@ bool LocalBinaryCacheStore::fileExists(const std::string & path)
|
|||
return pathExists(binaryCacheDir + "/" + path);
|
||||
}
|
||||
|
||||
std::set<std::string> LocalBinaryCacheStore::uriSchemes()
|
||||
std::set<std::string> LocalBinaryCacheStoreConfig::uriSchemes()
|
||||
{
|
||||
if (getEnv("_NIX_FORCE_HTTP") == "1")
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue