Skip to content

[CLI] Queries break for some common attributes #5248

@erikkerber

Description

@erikkerber

Describe the bug

In our .bazelrc we had JDK 11 specified under common:

common --java_runtime_version=remotejdk_11
common --tool_java_runtime_version=remotejdk_11
common --repo_env=JAVA_HOME=../bazel_tools/jdk

When installing the CLI via .bazelversion, queries then broke with an invalid option applied:

ERROR: --java_runtime_version=remotejdk_11 :: Unrecognized option: --java_runtime_version=remotejdk_11

Changing those to build resolves, but it feels like a bug that the wrapper isn't a pure passthrough in this instance

To Reproduce
(Above)

Expected behavior

The wrapper is completely transparent to regular Bazel operations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions