1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 13:31:48 +02:00

Remove InputScheme::fetchToStore()

InputSchemes now only have a getAccessor(). They could be implemented
internally by fetching the input to the store, but in that case they
will just return a FSInputAccessor.
This commit is contained in:
Eelco Dolstra 2022-08-01 15:44:40 +02:00
parent 360a1284db
commit 55c63c9b89
13 changed files with 168 additions and 162 deletions

View file

@ -791,7 +791,7 @@ SourcePath EvalState::findFile(SearchPath & searchPath, const std::string_view p
try {
auto storePath = fetchers::downloadTarball(
store, resolveUri(elem.second), "source", false).first;
auto accessor = makeFSInputAccessor(CanonPath(store->toRealPath(storePath)));
auto accessor = makeStorePathAccessor(store, storePath);
registerAccessor(accessor);
res.emplace(SourcePath {accessor, CanonPath::root});
} catch (FileTransferError & e) {