Skip to content

Commit f79be3e

Browse files
protobuf: add //:go_features_proto Bazel alias
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
1 parent fb9e2c3 commit f79be3e

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

BUILD.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,16 @@ alias(
506506
visibility = ["//visibility:public"],
507507
)
508508

509+
################################################################################
510+
# Go support
511+
################################################################################
512+
513+
alias(
514+
name = "go_features_proto",
515+
actual = "//go:go_features_proto", # proto_library
516+
visibility = ["//visibility:public"],
517+
)
518+
509519
################################################################################
510520
# Test protos
511521
################################################################################

go/BUILD.bazel

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ proto_library(
1010
name = "go_features_proto",
1111
srcs = ["google/protobuf/go_features.proto"],
1212
strip_import_prefix = "/go",
13-
visibility = [
14-
"//pkg:__pkg__",
15-
],
13+
visibility = ["//:__subpackages__"],
1614
deps = ["//:descriptor_proto"],
1715
)

0 commit comments

Comments
 (0)