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

bazelrc common options should work with bazel shutdown #18985

Closed
twheys opened this issue Jul 19, 2023 · 2 comments
Closed

bazelrc common options should work with bazel shutdown #18985

twheys opened this issue Jul 19, 2023 · 2 comments
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged

Comments

@twheys
Copy link

twheys commented Jul 19, 2023

Description of the bug:

https://bazel.build/run/bazelrc#option-defaults

According to the documentation, in the bazelrc file, a common option should consider if the bazel command supports a cli option. However, it seems that bazel shutdown does not support this.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

This works for all options that I've tested but here's an example:

in bazelrc:

common --use_ijars

then run bazel shutdown. The following error message will be displayed:

INFO: Reading rc options for 'shutdown' from .../.bazelrc:
  Inherited 'common' options: --use_ijars
ERROR: --use_ijars :: Unrecognized option: --use_ijars

Which operating system are you running Bazel on?

os x

What is the output of bazel info release?

6.1.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@Pavank1992 Pavank1992 added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jul 19, 2023
@fmeum
Copy link
Collaborator

fmeum commented Jul 19, 2023

The documentation by default reflects the state of latest master. The functionality for common to check whether a command supports a flag will be released in 6.3.0 (#3054). 6.3.0rc1 is already available if you want to give it a try.

@twheys
Copy link
Author

twheys commented Jul 19, 2023

Great, thanks for the feedback

@twheys twheys closed this as completed Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged
Projects
None yet
Development

No branches or pull requests

4 participants