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

hallowed-plastic-91664

02/14/2022, 1:14 AM
is order enforced during
Copy code
./pants package ::
or
Copy code
./pants build ::
while I wait for go + protobuf support, I am wondering if it’s possible to use https://www.pantsbuild.org/docs/run-shell-commands target to compile the proto files manually before processing the go build process
e

enough-analyst-54434

02/14/2022, 2:10 AM
What order are you speaking of? The only obvious ordering Pants respects are data dependencies. So if you introduce an
experimental_shell_command
target, properly configure its
outputs
field to capture the generated go files, and then add that target as a manual dependency to the go target that needs to consume the generated files - you have a fighting chance and should give it a whirl since you've then established the data dependency. If you're speaking of the order a
::
glob expands targets to and those targets are consumed by the engine, only the data dependency ordering mentioned can really be relied upon.
If you do give this a whirl, please report back either way. This is ~exactly the sort of thing
experimental_shell_command
should allow an escape hatch for and so it would be good to know if its working or not for this sort of case.
💯 2
2
h

hallowed-plastic-91664

02/15/2022, 4:20 AM
ill give it a shot, thanks john
4 Views