// 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
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)
// TODO: Work out a nice library-like utility for writing an argfile, as this will be common.
with temporary_dir() as tmpdir:
list_file = os.path.join(tmpdir, "input_files_list")