Consolidate code duplicated in ArtifactCache and SourceCache
The following discussion from !1635 (merged) should be addressed:
-
@juergbi started a discussion: (+1 comment) This makes sense. However, it seems we have some code duplication between
ArtifactCacheandSourceCachewith differences in error handling. We should fix this with a method inCASCachethat fetches a directory with file blobs (or adding a parameter to the already existing_fetch_directory()) and possibly a helper method in theBaseCacheclass. The former can be implemented with a singleFetchTreecall to buildbox-casd in the future.Do you want to update this branch or defer this to a separate MR?