acoustic-house-77496
08/06/2023, 8:16 AMgit tags
, automatic versioning
and changelog
I already have this working using GeneratedSources
but I want the output of the files to be in the monorepo package dir, I didn't find something on the docs and I was curious how can I create the files in the desired folder
10x! 🙏broad-processor-92400
08/06/2023, 11:52 AMdist/
when running a command like pants package ::
? Or maybe something else?acoustic-house-77496
08/06/2023, 3:06 PMroot
| dist
| src
| project1
| project2In my implementation the generated sources are written in ‘/dist’ but this directory is in .gitignore So I want the generated sources to be in the project folder so they can be committed and also they will be in the corresponding place where other developers will see the files
acoustic-house-77496
08/06/2023, 3:08 PMacoustic-house-77496
08/07/2023, 7:14 AMbroad-processor-92400
08/07/2023, 7:30 AMacoustic-house-77496
08/07/2023, 7:32 AMbroad-processor-92400
08/07/2023, 7:32 AMacoustic-house-77496
08/07/2023, 7:45 AMpants export-codegen ::
and created a dedicated target conventional_commits(version=True, changelog=True, tag=True)
and I do it with an ExternalTool
so it can be download and used as a plugin in any project
and then I use the GeneratedSources
with Snapshot
so how can I add this part
run_shell_command(
name="write-foo",
# different file name so that they can be compared in the test
command="cp {chroot}/path/to/foo-generated.txt foo.txt",
execution_dependencies=[":generate-foo"]
)
into my rulebroad-processor-92400
08/07/2023, 7:47 AMacoustic-house-77496
08/07/2023, 7:49 AMconventional_commits
target that to be atomic without adding another targetbroad-processor-92400
08/07/2023, 8:35 AMacoustic-house-77496
08/07/2023, 9:38 AMbroad-processor-92400
08/07/2023, 10:35 AMwrite
or save
in the name?acoustic-house-77496
08/07/2023, 10:39 AM