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

[6.3.0] Let common ignore unsupported options #18566

Closed
wants to merge 1 commit into from

Conversation

iancha1992
Copy link
Member

Fixes #3054

RELNOTES: Options specified on the pseudo-command common in .rc files are now ignored by commands that do not support them as long as they are valid options for any Bazel command. Previously, commands that did not support all options given for common would fail to run. These previous semantics of common are now available via the new always pseudo-command.

Closes #18130.

Commit 44d3953

PiperOrigin-RevId: 534940403
Change-Id: I2ae268ae84de3f2b07ff3d1e36bf382bce714968

Fixes bazelbuild#3054

RELNOTES: Options specified on the pseudo-command `common` in `.rc` files are now ignored by commands that do not support them as long as they are valid options for *any* Bazel command. Previously, commands that did not support all options given for `common` would fail to run. These previous semantics of `common` are now available via the new `always` pseudo-command.

Closes bazelbuild#18130.

PiperOrigin-RevId: 534940403
Change-Id: I2ae268ae84de3f2b07ff3d1e36bf382bce714968
@iancha1992 iancha1992 added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc awaiting-review PR is awaiting review from an assigned reviewer labels Jun 2, 2023
@iancha1992 iancha1992 enabled auto-merge (squash) June 2, 2023 20:51
@iancha1992 iancha1992 removed the request for review from justinhorvitz June 2, 2023 20:58
@iancha1992
Copy link
Member Author

@justinhorvitz @fmeum Looks like the checks are failing. Do you think we need any additional commit to pass the checks?

@fmeum
Copy link
Collaborator

fmeum commented Jun 3, 2023

The commit depends on a minor change to a BUILD file introduced by 3dc6951. @kkress Would you say that your commit qualifies for a cherry pick to Bazel 6.3.0?

@kkress
Copy link
Contributor

kkress commented Jun 3, 2023

I don't know what the Cherry-pick requirements are for 6.3 so I can't say if it qualifies. That said it's a backwards compatible change to a single flag that probably no one uses, so should be safe to apply to older code.

Alternatively just adding the dep to the build file in it own commit is also probably harmless.

@fmeum
Copy link
Collaborator

fmeum commented Jun 7, 2023

@iancha1992 Could you try to cherry-pick 3dc6951 first?

@iancha1992 iancha1992 closed this Nov 21, 2023
auto-merge was automatically disabled November 21, 2023 16:26

Pull request was closed

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 team-Core Skyframe, bazel query, BEP, options parsing, bazelrc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants