You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go_library(
name="go_default_library",
srcs= [...],
importpath="github.com/lyft/protoc-gen-star",
visibility= ["//visibility:public"],
# Keep referencing the plugin and descriptor libraries directly. using the WKT's declared in `io_bazel_rules_go`# causes problems.# gazelle will prefer these by default.# "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto",# "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",#keepdeps= [
"@com_github_golang_protobuf//descriptor:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
"@com_github_golang_protobuf//protoc-gen-go/descriptor:go_default_library",
"@com_github_golang_protobuf//protoc-gen-go/generator:go_default_library",
"@com_github_golang_protobuf//protoc-gen-go/plugin:go_default_library",
"@com_github_spf13_afero//:go_default_library",
"@org_golang_x_sync//errgroup:go_default_library",
],
)
if I remove the #keep from the library I get a warning (tests still pass):
GoLink: warning: package "github.com/golang/protobuf/protoc-gen-go/descriptor" is provided by more than one rule:
@io_bazel_rules_go//proto/wkt:descriptor_go_proto
@com_github_golang_protobuf//protoc-gen-go/descriptor:go_default_library
if I remove the #keep from the tests I get a failure:
Hey @hsyed, you should be able to resolve this by adding the comment # gazelle proto:disable_global to your root build file. That will prevent Gazelle from depending on go_proto_library rules for the Well Known Types, and it will disable special cases for frequently used proto libraries like ptypes.
Firstly, the proto support and the fact that gogo is abstracted is awesome ! thanks !
I working on a build for lyft/protoc-gen-star proto code generation framework. Please see comment in snippet below (original file).
if I remove the
#keep
from the library I get a warning (tests still pass):if I remove the
#keep
from the tests I get a failure:The text was updated successfully, but these errors were encountered: