cool-easter-32542
06/29/2023, 3:17 PMname is to address that particular target only, and may be used by default by targets such as docker_image to produce the image name, but there are dedicated fields to customize the various parts that make up the final image name or binary output filename. See https://www.pantsbuild.org/docs/tagging-docker-images#setting-a-repository-name about how to tag docker images. There's a lot of flexibility to support many different use cases.
To change the name of your go_binary there is a output_path field if you don't want it to base it on the target name: https://www.pantsbuild.org/docs/reference-go_binary#codeoutput_pathcode
pantsbuild/pants