all_snapshots: Iterable[Snapshot] = (*full_snapshots.values(), *snapshot_subsets)
if request.strip_source_roots:
all_sources_fields = (*full_snapshots.keys(), *digest_subset_requests.keys())
stripped_snapshots = await MultiGet(
Get(
SourceRootStrippedSources,
StripSourcesFieldRequest(
sources_field,
specified_files_snapshot=snapshot,
for_sources_types=request.for_sources_types,
enable_codegen=request.enable_codegen,
),
)
for sources_field, snapshot in zip(all_sources_fields, all_snapshots)
)
all_snapshots = (stripped_snapshot.snapshot for stripped_snapshot in stripped_snapshots)
result = await Get(Snapshot, MergeDigests(snapshot.digest for snapshot in all_snapshots))
return SourceFiles(result)
After Change
Possibly finding a subset of the original `sources` fields if the user supplied file arguments.
all_unrooted_files: Set[str] = set()
all_hydrated_sources = await MultiGet(
Get(
HydratedSources,
HydrateSourcesRequest(