high-yak-85899
01/02/2024, 8:42 PMadhoc_tool
into an exported place for use in an IDE? Or does that currently require the codegen plugin route?broad-processor-92400
01/02/2024, 9:32 PMpants export-codegen path/to:target
should work for adhoc_tool
late-keyboard-89314
01/02/2024, 9:34 PMrun_shell_command
to copy stuff out of the pants sandbox after an adhoc tool invocation:
run_shell_command(
name="update",
command="cp {chroot}/sboms/*.spdx.json . && chmod ugo=rw *.spdx.json", # . is relative to the location of the BUILD file, not PWD when running pants
execution_dependencies=[
":generate_base",
":generate_debug",
],
)