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
When some of go_proto_repositories likecom_github_golang_protobuf and org_golang_x_net are automatically imported by the dependencies of new_go_repository(), there are conflicts like
ERROR: /usr/local/share/users/jungho.ahn/cache/bazel/_bazel_jungho.ahn/c8d993de066bb9ba420445c3170a1d5a/external/org_pubref_rules_protobuf/go/BUILD:5:1: no such target '@com_github_golang_protobuf//:protoc_gen_go': target 'protoc_gen_go' not declared in package '' defined by /usr/local/share/users/jungho.ahn/cache/bazel/_bazel_jungho.ahn/c8d993de066bb9ba420445c3170a1d5a/external/com_github_golang_protobuf/BUILD and referenced by '@org_pubref_rules_protobuf//go:go'.
ERROR: /home/jungho.ahn/work/snapcraft/snapcraft/snapcraft_serving/proto/BUILD:14:1: no such target '@com_github_golang_protobuf//:proto': target 'proto' not declared in package ''; however, a source directory of this name exists. (Perhaps add 'exports_files(["proto"])' to /BUILD, or define a filegroup?) defined by /usr/local/share/users/jungho.ahn/cache/bazel/_bazel_jungho.ahn/c8d993de066bb9ba420445c3170a1d5a/external/com_github_golang_protobuf/BUILD and referenced by '//proto:style_deployment_proto_go'.
ERROR: Analysis of target '//proto:style_deployment_proto_go' failed; build aborted.
This is because the BUILD files in protobuf/build_file and go/rules.bzl are using specific library names while the generated Go BUILD files by new_go_repository() are using go_default_library name.
Is there any work around for this?
The text was updated successfully, but these errors were encountered:
When some of go_proto_repositories like
com_github_golang_protobuf
andorg_golang_x_net
are automatically imported by the dependencies ofnew_go_repository()
, there are conflicts likeThis is because the BUILD files in
protobuf/build_file
andgo/rules.bzl
are using specific library names while the generated Go BUILD files bynew_go_repository()
are usinggo_default_library
name.Is there any work around for this?
The text was updated successfully, but these errors were encountered: