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 multiple-definition error on windows_config_setting #1084

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

novas0x2a
Copy link
Contributor

When using runnable_binary twice in the same package, windows_config_setting was being defined twice producing an error like:

Error in config_setting: config_setting rule 'windows_config_setting' in package '' conflicts with existing config_setting rule, defined at .../BUILD.bazel:29:16

This fix prefixes the setting with the name, the same as the other rules defined by the macro.

When using runnable_binary twice in the same package,
windows_config_setting was being defined twice producing an error like:

Error in config_setting: config_setting rule 'windows_config_setting' in
package '' conflicts with existing config_setting rule, defined at
.../BUILD.bazel:29:16

This fix prefixes the setting with the name, the same as the other rules
defined by the macro.
Copy link
Member

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@jsharpe jsharpe merged commit 7b67354 into bazel-contrib:main Aug 25, 2023
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