Skip to content

Silence duplicate option warnings from lower priority expansion#30118

Open
keith wants to merge 1 commit into
bazelbuild:masterfrom
keith:ks/silence-duplicate-option-warnings-from-lower-priority-expansion
Open

Silence duplicate option warnings from lower priority expansion#30118
keith wants to merge 1 commit into
bazelbuild:masterfrom
keith:ks/silence-duplicate-option-warnings-from-lower-priority-expansion

Conversation

@keith

@keith keith commented Jul 2, 2026

Copy link
Copy Markdown
Member

Previously this config:

common:default --bes_results_url=remote.buildbuddy.io
common --config=default

common:override --bes_results_url=buildbuddy.buildbuddy.io

With bazel build --config=override ... would result in:

WARNING: option '--bes_results_url' was expanded from both option '--config=default' (source /.../.bazelrc) and option '--config=override' (source command line options)

Now we correctly treat the default config as coming from the lower
priority RC file

@github-actions github-actions Bot added the awaiting-review PR is awaiting review from an assigned reviewer label Jul 2, 2026
Previously this config:

```
common:default --bes_results_url=remote.buildbuddy.io
common --config=default

common:override --bes_results_url=buildbuddy.buildbuddy.io
```

With `bazel build --config=override ...` would result in:

```
WARNING: option '--bes_results_url' was expanded from both option '--config=default' (source /.../.bazelrc) and option '--config=override' (source command line options)
```

Now we correctly treat the default config as coming from the lower
priority RC file
@keith keith force-pushed the ks/silence-duplicate-option-warnings-from-lower-priority-expansion branch from 3dfb62c to ba886b6 Compare July 2, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant