-
Notifications
You must be signed in to change notification settings - Fork 4.1k
bazel: Unrecognized option: --experimental_no_product_name_out_symlink with bazel 5 #75796
Copy link
Copy link
Closed
Labels
A-build-systemC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-dev-inf
Description
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
- upgrade bazel to 5.x
- run a
buildcommand
Expected behavior
Build succeeds
Additional data / screenshots
I was able to work around by manually editing .bazelrc to remove the flag.
Epic CRDB-8036
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-build-systemC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-dev-inf