Skip to content

How are you supposed to deal with duplicate names? #19394

Answered by kaos
rdeusser asked this question in Q&A
Discussion options

You must be logged in to vote

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#co…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdeusser
Comment options

Answer selected by rdeusser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants