heya :wave: I'm using the experimental_test_shell_...
# general
b
heya 👋 I'm using the experimental_test_shell_command for some tests, is there a way to exclude transitive dependencies from being copied into the chroot? 🙏
l
If you have specific dependencies you want excluded, do the exclusion/ignore flags mentioned in https://www.pantsbuild.org/docs/targets#dependencies-field get you what you need?
b
As you probably know, experimental_test_shell_command doesn't have a dependencies field, only execution_dependencies. I did try the exclusion flags but no luck unfortunately. To my understanding, pants treats it as a file path, not a target; so it sees the ignore flag as an invalid/non-existent file.
b
The execution dependencies field is another flavor of dependencies field. That being said, only the "direct exclude" (e.g. single "!") would work here
b
tried both single and double; got error in both cases. e,g, for "!python/cli:update_version" I got
Copy code
ResolveError: The file or directory '!python/cli' does not exist on disk in the workspace, so the address '!python/cli:update_version' from the `execution_dependencies` from the target images/base/toolbox:test cannot be resolved.
(python/cli/BUILD does exist, and defines an update_version target)
happy to hear I'm doing something completely wrong if that's the case 😄
b
If you can reproduce in a tiny little repo, please file an issue. Looks like a bug to me 😬
b
sure thing 👍