Skip to content

Commit

Permalink
protobuf: add //:go_features_proto Bazel alias (#20419)
Browse files Browse the repository at this point in the history
Users who use Protobuf via Bazel currently have no way of specifying a
dependency on the well-known go_features.proto.

For golang/protobuf#1679

PiperOrigin-RevId: 728991839

Co-authored-by: Protobuf Team Bot <protobuf-github-bot@google.com>
  • Loading branch information
mkruskal-google and protobuf-github-bot authored Feb 20, 2025
1 parent 5c7d98f commit 8892adc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,16 @@ alias(
visibility = ["//visibility:public"],
)

################################################################################
# Go support
################################################################################

alias(
name = "go_features_proto",
actual = "//go:go_features_proto", # proto_library
visibility = ["//visibility:public"],
)

################################################################################
# Test protos
################################################################################
Expand Down
4 changes: 1 addition & 3 deletions go/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ proto_library(
name = "go_features_proto",
srcs = ["google/protobuf/go_features.proto"],
strip_import_prefix = "/go",
visibility = [
"//pkg:__pkg__",
],
visibility = ["//:__subpackages__"],
deps = ["//:descriptor_proto"],
)

0 comments on commit 8892adc

Please sign in to comment.