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

Add protobuf_extra_deps.bzl for loading dependencies necessary for external repositories in protobuf_deps.bzl. #19418

Merged
merged 1 commit into from
Nov 27, 2024

Commits on Nov 27, 2024

  1. Add protobuf_extra_deps.bzl for loading dependencies necessary for ex…

    …ternal repositories in protobuf_deps.bzl.
    
    This is needed for `rules_java` which requires additional loads for Bazel 8. This provides a single entrypoint for extra dependencies so we can add these moving forward without breaking users, and is similar to https://github.com/grpc/grpc/blob/master/bazel/grpc_extra_deps.bzl.
    
    Non-bzlmod users should make sure to set the following in their WORKSPACE file:
    ```
    http_archive(
        name = "protobuf",
        strip_prefix = "protobuf-VERSION",
        sha256 = ...,
        url = ...,
    )
    
    load("@protobuf//:protobuf_deps.bzl", "protobuf_deps")
    
    protobuf_deps()
    
    load("@protobuf//:protobuf_extra_deps.bzl", "protobuf_extra_deps")
    
    protobuf_extra_deps();
    ```
    
    PiperOrigin-RevId: 700810708
    zhangskz authored and copybara-github committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    d59a9e1 View commit details
    Browse the repository at this point in the history