https://pantsbuild.org/ logo
#general
Title
# general
h

high-yak-85899

03/14/2023, 6:15 PM
Any existing ideas for how we could use bazel outputs in the pants-side of our repo? Could
experimental_shell_command
work its way in here to call out to build bazel things for us?
a

ancient-vegetable-10556

03/14/2023, 7:42 PM
Yes, you could absolutely get `shell_command`/`adhoc_tool` to execute something else under the hood, as long as you can get the entire environment into the Pants sandbox
(We can capture
npm
outputs fairly effectively with a bit of work https://github.com/pantsbuild/example-adhoc/blob/main/javascript/BUILD), but we haven’t tried bazel under the hood. That’d be a cool demo though