Skip to content

Commit

Permalink
don't fetch from store to store
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed Aug 7, 2024
1 parent 0785922 commit 1066fb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libfetchers/fetch-to-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ StorePath fetchToStore(
{
// FIXME: add an optimisation for the case where the accessor is
// a `PosixSourceAccessor` pointing to a store path.
if (store.isInStore(path.path.abs())) {
return store.toStorePath(path.path.abs()).first;
}

std::optional<fetchers::Cache::Key> cacheKey;

Expand Down

0 comments on commit 1066fb7

Please sign in to comment.