1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-18 16:29:36 +01:00

Use local-overlay:// not local-overlay for store URL

This is a bit uglier, but allows us to avoid an ad-hoc special case in
`store-api.cc`.
This commit is contained in:
John Ericson 2023-10-25 15:29:11 -04:00
parent 8434f23c97
commit 250c3541bb
4 changed files with 10 additions and 12 deletions

View file

@ -90,15 +90,18 @@ public:
LocalOverlayStore(std::string scheme, std::string path, const Params & params)
: LocalOverlayStore(params)
{
throw UnimplementedError("LocalOverlayStore");
if (!path.empty())
throw UsageError("local-overlay:// store url doesn't support path part, only scheme and query params");
}
static std::set<std::string> uriSchemes()
{ return {}; }
{
return { "local-overlay" };
}
std::string getUri() override
{
return "local-overlay";
return "local-overlay://";
}
private: