Binary artifact from shell_command
wrapped by experimental_wrap_as_resources
is not copied into the sandbox of a python_test
#21156
Labels
Describe the bug
I have a
shell_command
that producesIf there is an
experimental_wrap_as_resources
target between theshell_command
that produces the binary artifact and apython_test
that consumes it, the binary artifact is not put in the sandbox, breaking the python test.If the
python_test
target depends directly on theshell_command
, things work fine.But I need the intermediate
experimental_wrap_as_resources
because otherwisepants check
does not honor the dependency of the python test on the output of theshell_command
.I put a reproducer at https://github.com/eguiraud/pants-workspace-exec-testing/tree/problem-with-wrap-as-resources.
cc: @tdyas
Pants version
Pants from source, main@ae91cdf241 (latest main as of 10th of July 2024).
OS
Linux
Additional info
This problem arose as part of our effort, at https://www.proximafusion.com, to better interface pants and bazel -- effort with which @tdyas is assisting.
The text was updated successfully, but these errors were encountered: