mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
Guard the local overlay store behind an experimental feature
This commit is contained in:
parent
3fc838c8a8
commit
4b9a621812
5 changed files with 19 additions and 3 deletions
|
|
@ -1444,7 +1444,9 @@ std::shared_ptr<Store> openFromNonUri(const std::string & uri, const Store::Para
|
|||
} else if (uri == "local") {
|
||||
return std::make_shared<LocalStore>(params);
|
||||
} else if (uri == "local-overlay") {
|
||||
return std::make_shared<LocalOverlayStore>(params);
|
||||
auto store = std::make_shared<LocalOverlayStore>(params);
|
||||
experimentalFeatureSettings.require(store->experimentalFeature());
|
||||
return store;
|
||||
} else if (isNonUriPath(uri)) {
|
||||
Store::Params params2 = params;
|
||||
params2["root"] = absPath(uri);
|
||||
|
|
@ -1512,6 +1514,7 @@ ref<Store> openStore(const std::string & uri_,
|
|||
params.insert(uriParams.begin(), uriParams.end());
|
||||
|
||||
if (auto store = openFromNonUri(uri, params)) {
|
||||
experimentalFeatureSettings.require(store->experimentalFeature());
|
||||
store->warnUnknownSettings();
|
||||
return ref<Store>(store);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue