Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proto linker issue with gazelle proto generate #11

Open
TerrenceHo opened this issue Apr 11, 2021 · 0 comments
Open

proto linker issue with gazelle proto generate #11

TerrenceHo opened this issue Apr 11, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@TerrenceHo
Copy link
Owner

Describe the bug
When running bazel run //:update_go_deps with
-build_file_proto_mode=disable_global set, all go_repository import rules
will have build_file_proto_mode = "disable_global" set, the following error
results when you try to build all.

link: package conflict error: github.com/golang/protobuf/ptypes/any: multiple copies of package passed to linker:
        @io_bazel_rules_go//proto/wkt:any_go_proto
        @com_github_golang_protobuf//ptypes/any:any
Set "importmap" to different paths or use 'bazel cquery' to ensure only one
package with this path is linked.

Which service does this bug affect?
All go services

To Reproduce
Steps to reproduce the behavior:

  1. Add -build_file_proto_mode=disable_global to the update_go_deps command.
  2. Run bazel build //...
  3. Wait for error

Expected behavior
We expect all of this to compile correctly.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: OSX

Additional context
Online searches:

@TerrenceHo TerrenceHo added the bug Something isn't working label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant