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

Negation support #412

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

leovitch
Copy link

This PR adds the ability to negate individual elements of a config_settings_group(), so that you can construct groups that evaluate conditions like "match config_setting 1 and do not match config_setting 2." This is very helpful when making sure that the list of conditions in a select match once and only once.

@leovitch
Copy link
Author

FWIW the failure with bzlmod looks similar to the failure discussed on #411 where fmeum wrote:
@shs96c That's probably on me: bazelbuild/bazel@839ce7f

@fmeum
Copy link
Contributor

fmeum commented Nov 15, 2022

@leovitch These failures should be fixed by bazelbuild/bazel#16755. Once it has been merged, you can do a trivial amend of your commits and force push to trigger a rerun of the pipeline.

@leovitch leovitch marked this pull request as ready for review November 15, 2022 17:28
@leovitch
Copy link
Author

Thanks for the note Fabian!

leovitch and others added 3 commits November 16, 2022 09:15
…g_group.

Currently config_setting_group can be used to evaluate AND or OR expression or other config_setting or config_setting_group nodes. However, it cannot currently evaluate expressions such as  A AND NOT B. This CL adds that capability.
bzlmod compatibility

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
bzlmod compatibility

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
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