Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tailor not setting the name field (Cherry-pick of #13913) #13924

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

Eric-Arellano
Copy link
Contributor

We were setting the target name to always be docker, but not setting the kwargs so the name actually ended up being the default of the directory name. This caused tailor to not properly handle collisions in the target name.

This fixes it by removing the gotcha entirely. Now, core/goals/tailor.py determines if the name field will be set or not based on whether the name is the default of the directory name.

[ci skip-rust]
[ci skip-build-wheels]

We were setting the target name to always be `docker`, but not setting the kwargs so the name _actually_ ended up being the default of the directory name. This caused tailor to not properly handle collisions in the target name.

This fixes it by removing the gotcha entirely. Now, `core/goals/tailor.py` determines if the `name` field will be set or not based on whether the `name` is the default of the directory name.

[ci skip-rust]
[ci skip-build-wheels]
@kaos
Copy link
Member

kaos commented Dec 20, 2021

PR target branch says main... guess it should be 2.9.x ?

@Eric-Arellano
Copy link
Contributor Author

Oh shoot, good catch. Thanks!

@Eric-Arellano Eric-Arellano changed the base branch from main to 2.9.x December 20, 2021 17:09
@Eric-Arellano Eric-Arellano merged commit 13e700d into pantsbuild:2.9.x Dec 20, 2021
@Eric-Arellano Eric-Arellano deleted the cp-tailor-29 branch December 20, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants