adamant-piano-24321
02/10/2023, 7:16 AM./pants package exampleenough-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"pex_binary(
    ...
    output_path="foo/bar/baz"
)bazfoo/bar/baz./pamts package ...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=transitivehappy-kitchen-89482
02/10/2023, 5:02 PM/pants package example