Skip to content

Bazel 9.0+ compatibility issue with packaged proto files #508

@l46kok

Description

@l46kok

With Bazel 9.0 and onwards, rules must be explicitly loaded in the associated BUILD files with the published proto:

Example: https://github.com/google/cel-spec/blob/master/proto/cel/expr/conformance/test/BUILD.bazel is missing:

load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library")
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
// And other rules used

--incompatible_autoload_externally can be used as a workaround, but this flag will be removed in Bazel 10.

https://blog.bazel.build/2026/01/20/bazel-9.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions