quiet-army-59227
06/18/2024, 10:20 PMProcess with curl the best way? Or is there another, preferred way to do it using the Rules API?gorgeous-winter-99296
06/23/2024, 6:49 PMquiet-army-59227
06/24/2024, 4:30 PMnarrow-vegetable-37489
06/25/2024, 9:25 AMquiet-army-59227
06/25/2024, 4:47 PMgorgeous-winter-99296
06/25/2024, 7:16 PMquiet-army-59227
06/26/2024, 8:39 PMpublish goal? How does that publish artifacts to a artifactory?gorgeous-winter-99296
07/02/2024, 3:04 PMpants publish isn't a specific codepath, it finds rules that accept the specified target(s) and delegates to that rule to do the lifting.
See this code here, which is porcelain side of the equation: https://github.com/pantsbuild/pants/blob/main/src/python/pants/core/goals/publish.py#L219-L273 - it gathers a number of process-objects (i.e., not launched) for all possible targets, then handles one at a time to do the actual publishing. The plumbing side is here: https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/python/goals/publish.py#L134. You can see it returns a specific "PublishProcess", which is mostly a process with metadata.