<#17617 `experimental_shell_command` requires usin...
# github-notifications
q
#17617 `experimental_shell_command` requires using `relocated_files` to produce sane artifacts New issue created by chrisjrn Using the
outputs
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 • Add a
<PWD>
special value to `relocated_files`'
src
or
dest
fields
Make
build_file_dir()
clearer for
relocated_files
uses • Maybe something else? pantsbuild/pants