// TODO: This should use an input file snapshot which should be provided on the Target object,
// rather than hackily re-snapshotting each of the input files.
// See https://github.com/pantsbuild/pants/issues/5762
input_pathglobs = PathGlobs(tuple(input_files))
input_snapshot = self.context._scheduler.product_request(Snapshot, [input_pathglobs])[0]
directory_digest = self.context._scheduler.merge_directories((
cloc_snapshot.directory_digest,
input_snapshot.directory_digest,
list_file_snapshot.directory_digest,
))
cmd = (
"/usr/bin/perl",
After Change
targets = self.context.target_roots
input_snapshots = tuple(
target.sources_snapshot(scheduler=self.context._scheduler) for target in targets
)
input_files = set(f.path for snapshot in input_snapshots for f in snapshot.files)