<Comment on #19394 How are you supposed to deal wi...
# github-notifications
c
Comment on #19394 How are you supposed to deal with duplicate names? Discussion answered by kaos Hi, Assuming you've seen https://www.pantsbuild.org/docs/targets#target-addresses The
name
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