mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 17:29:36 +01:00
Create default Store::narFromPath implementation in terms of getFSAccessor
This is a good default (the methods that allow for an arbitrary choice of source accessor are generally preferable both to implement and to use). And it also pays its way by allowing us to delete *both* the `DummyStore` and `LocalStore` implementations.
This commit is contained in:
parent
c5515bb22e
commit
dd716dc9be
8 changed files with 11 additions and 24 deletions
|
|
@ -143,7 +143,7 @@ struct MountedSSHStore : virtual SSHStore, virtual LocalFSStore
|
|||
|
||||
void narFromPath(const StorePath & path, Sink & sink) override
|
||||
{
|
||||
return LocalFSStore::narFromPath(path, sink);
|
||||
return Store::narFromPath(path, sink);
|
||||
}
|
||||
|
||||
ref<SourceAccessor> getFSAccessor(bool requireValidPath) override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue