limited-art-78990
08/23/2024, 8:13 AMshell_command
shell_command(
name = "foo",
command="echo 'foo' > bar.txt",
tools=["echo"],
output_files=["bar.txt"],
)
How can I develop this target? How do I run the target and get the contents of bar.txt
? I tried this so far
• pants peek //:foo
• pants run //:foo
• pants package //:foo
• check .pants.d
directory
• check dist
directory
But none of these worked out so farlimited-art-78990
08/23/2024, 8:24 AM:foo
target into an archive:
archive(
name = "archive",
format = "zip",
files = [
":foo",
]
)
And running
pants --keep-sandboxes=always package //:archive
Also doesn't give me the location of the bar.txt
file. Reading Tips and debugging I guess the files are stored in ~/.cache/pants/lmdb_store
but particular store doesn't maintain file names.limited-art-78990
08/23/2024, 8:46 AMpants export-codegen //:foo
limited-art-78990
08/23/2024, 8:47 AMlimited-art-78990
08/23/2024, 8:47 AMfresh-cat-90827
08/27/2024, 10:37 PMexport-codegen
goal to generate code to a well-known output location for consumption.