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

Mutually exclusive options no longer change the dest #11718

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

Eric-Arellano
Copy link
Contributor

Before, all members of a mutually exclusive option would have the same dest. This makes it clunky to figure out which of the mutex was selected.

If people want to share the same dest, they can explicitly do so by setting dest on each option. Now, mutually_exclusive_group simply provides validation.

This also improves the corresponding error message.

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

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano
Copy link
Contributor Author

We don't currently document mutually_exclusive_group anywhere: https://www.pantsbuild.org/docs/rules-api-subsystems#register-parameters

I can add it to the 2.4 docs if/when this lands, though. This is a useful feature.

@Eric-Arellano Eric-Arellano merged commit c8f7ae5 into pantsbuild:master Mar 17, 2021
@Eric-Arellano Eric-Arellano deleted the mutex-opts branch March 17, 2021 17:56
@benjyw benjyw mentioned this pull request Mar 20, 2021
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