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

tailor: do not append comma to kwarg with empty tuple #12653

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Aug 25, 2021

If an empty tuple is passed as the value of a kwarg to PutativeTarget.for_target_type, tailor will generate [,] in the BUILD file which does not parse. Fix the issue by only appending the comma when there are actually values to put into the BUILD file for the kwarg.

[ci skip-rust]

[ci skip-build-wheels]
@tdyas tdyas merged commit e0a1a7f into pantsbuild:main Aug 26, 2021
@tdyas tdyas deleted the tailor_fix_empty_tuple_kwarg branch August 26, 2021 01:57
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.

3 participants