Skip to content

bazel: Unrecognized option: --experimental_no_product_name_out_symlink with bazel 5 #75796

@knz

Description

@knz

Describe the problem

I upgraded to bazel 5 and I get build errors:

INFO: Reading rc options for 'build' from /data/home/kena/src/go/src/github.com/cockroachdb/cockroach/.bazelrc:
  'build' options: --define gotags=bazel,gss --experimental_proto_descriptor_sets_include_source_info --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution --symlink_prefix=_bazel/ --experimental_no_product_name_out_symlink --ui_event_filters=-DEBUG
ERROR: --experimental_no_product_name_out_symlink :: Unrecognized option: --experimental_no_product_name_out_symlink

To Reproduce

  1. upgrade bazel to 5.x
  2. run a build command

Expected behavior

Build succeeds

Additional data / screenshots

I was able to work around by manually editing .bazelrc to remove the flag.

Epic CRDB-8036

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-systemC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-dev-inf

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions