quaint-telephone-89068
11/22/2022, 6:31 PMoutputs field on experimental_shell_command exports a file for use by subsequent targets. If the target is being used for an archive, this is probably not ideal.
Per this example, if you want to add the outputs to an archive that's not organised like your monorepo structure, you need to repeat the location of the BUILD file as the src field of a relocated_files target.
Possible fixes:
• Add a strip_prefix field to experimental_shell_command, which would strip the prefix from the files in the output digest
• <PWD> special value to `relocated_files`' src or dest fieldsbuild_file_dir() clearer for relocated_files uses
• Maybe something else?
pantsbuild/pants