Quick sanity check question: Is it currently possi...
# general
h
Quick sanity check question: Is it currently possible to dump products of
adhoc_tool
into an exported place for use in an IDE? Or does that currently require the codegen plugin route?
b
I believe
pants export-codegen path/to:target
should work for
adhoc_tool
l
If it doesn’t, or you want them in some other location, we use
run_shell_command
to copy stuff out of the pants sandbox after an adhoc tool invocation:
Copy code
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",
    ],
)