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
It looks like your compiler generates code that imports google.golang.org/grpc/codes and google.golang.org/grpc/status but does not add dependencies on those libraries. The rules can't know what imports are present during the analysis phase because they can't do any I/O.
Could you try adding @org_golang_google_grpc//codes:go_default_library and @org_golang_google_grpc//status:go_default_library to the deps attribute of //protoc-gen-gogrpcbug:go_grpc_bug? go_proto_compiler has more info.
Hmm ... Adding @org_golang_google_grpc//codes:go_default_library / @org_golang_google_grpc//status:go_default_library to the deps fixes a problem. I definitely tried it today and it did not work ...
What version of rules_go are you using?
v0.21.2
What version of gazelle are you using?
v0.19.1
What version of Bazel are you using?
v2.0.0
Does this issue reproduce with the latest releases of all the above?
Yes.
Current rules_go HEAD (7d825a3)
Current gazelle HEAD (b38f32ee6304d3fb1d98e83497ce238cbcc5e2e0)
What operating system and processor architecture are you using?
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Linux asmirnov 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
What did you do?
github.com/golang/protobuf/protoc-gen-go/generator
).go_proto_compiler
.bazel run //:gazelle
).bazel build //proto/...
).reprorepo:
https://github.com/asv/bazel_rules_go_custom_comp_bug
bazel build //proto/...
What did you expect to see?
Success build outputs.
What did you see instead?
The text was updated successfully, but these errors were encountered: