@@ -270,7 +270,7 @@ struct GitArchiveInputScheme : InputScheme
270270 if (auto lastModifiedAttrs = cache->lookup (lastModifiedKey)) {
271271 auto treeHash = getRevAttr (*treeHashAttrs, " treeHash" );
272272 auto lastModified = getIntAttr (*lastModifiedAttrs, " lastModified" );
273- if (getTarballCache ()->hasObject (treeHash))
273+ if (input. settings -> getTarballCache ()->hasObject (treeHash))
274274 return {std::move (input), TarballInfo{.treeHash = treeHash, .lastModified = (time_t ) lastModified}};
275275 else
276276 debug (" Git tree with hash '%s' has disappeared from the cache, refetching..." , treeHash.gitRev ());
@@ -290,7 +290,7 @@ struct GitArchiveInputScheme : InputScheme
290290 *logger, lvlInfo, actUnknown, fmt (" unpacking '%s' into the Git cache" , input.to_string ()));
291291
292292 TarArchive archive{*source};
293- auto tarballCache = getTarballCache ();
293+ auto tarballCache = input. settings -> getTarballCache ();
294294 auto parseSink = tarballCache->getFileSystemObjectSink ();
295295 auto lastModified = unpackTarfileToSink (archive, *parseSink);
296296 auto tree = parseSink->flush ();
@@ -324,7 +324,8 @@ struct GitArchiveInputScheme : InputScheme
324324#endif
325325 input.attrs .insert_or_assign (" lastModified" , uint64_t (tarballInfo.lastModified ));
326326
327- auto accessor = getTarballCache ()->getAccessor (tarballInfo.treeHash , false , " «" + input.to_string () + " »" );
327+ auto accessor =
328+ input.settings ->getTarballCache ()->getAccessor (tarballInfo.treeHash , false , " «" + input.to_string () + " »" );
328329
329330 return {accessor, input};
330331 }
0 commit comments