adamant-piano-24321
02/10/2023, 7:16 AM./pants package example
is this operation repeated regardless of changes?enough-analyst-54434
02/10/2023, 2:14 PMIt seems the output path option only changes the name of the object being generated not the dist path itself.I assume you're using https://www.pantsbuild.org/docs/reference-pex_binary#codeoutput_pathcode - which is the right idea. If you configure:
[GLOBAL]
pants_distdir = "%(buildroot)s"
Then you should find:
pex_binary(
...
output_path="foo/bar/baz"
)
Nets you a PEX file baz
at foo/bar/baz
in your repo after running ./pamts package ...
on the `pex_binary`target.enough-analyst-54434
02/10/2023, 2:17 PMi.e. when triggeringYes. In fact all Pants operations that produce visible output files act this way. They basically can't assume the file already on the filesystem is up to date. IOW Pants does not 1st look at the output path, see if there is a file, checksum it and proceed from there. It does do something like that for all internal - invisible to you in normal circumstances - sandboxed operations, just not the final operations that materialize output to disk in your workspace.is this operation repeated regardless of changes?./pants package example
adamant-piano-24321
02/10/2023, 2:30 PMhappy-kitchen-89482
02/10/2023, 5:02 PM./pants --changed-since=main --changed-dependents=transitive
to rebuild all packages that are affected by changes in git.happy-kitchen-89482
02/10/2023, 5:02 PM/pants package example
will repeat just the final step of writing to your workspace, but the work leading up to that will be retrieved from cache, if possible.