Skip to content

Commit b1f9017

Browse files
authored
Bug fix: proto: add gofeaturespb as well-known type; Go Protobuf ships it (#4279)
go_features.proto was introduced with Go Protobuf v1.33.0 (March 2024): protocolbuffers/protobuf-go@2040e86 …but with the release of the Go Protobuf Opaque API in December 2024, more users will be interested in making use of this file to configure the generated API that their .proto files should use. Without this change, building a go_proto_library() whose .proto sets the API level to the Opaque API as documented at https://protobuf.dev/reference/go/opaque-migration/ would fail with this error message: compilepkg: missing strict dependencies: …/execroot/_main/bazel-out/k8-fastbuild/bin/dumbdata_go_proto_/ github.com/cshabsin/nih/dumbdata_go_proto/dumb_data.pb.go: import of "google.golang.org/protobuf/types/gofeaturespb" No dependencies were provided. For golang/protobuf#1679
1 parent cf3c3af commit b1f9017

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proto/wkt/well_known_types.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ PROTO_RUNTIME_DEPS = [
5959
# on the APIv1 packages.
6060
WELL_KNOWN_TYPES_APIV2 = [
6161
"@org_golang_google_protobuf//types/descriptorpb",
62+
"@org_golang_google_protobuf//types/gofeaturespb",
6263
"@org_golang_google_protobuf//types/known/anypb",
6364
"@org_golang_google_protobuf//types/known/apipb",
6465
"@org_golang_google_protobuf//types/known/durationpb",

0 commit comments

Comments
 (0)