Closed cyyber closed 2 years ago
The error message says "no such package '@com_github_libp2p_go_libp2p_core//github.com/libp2p/go-libp2p-core/crypto/pb'"; so you should check /home/cyyber/.cache/bazel/_bazel_cyyber/3a49417b1dd1f87823292d1011bf771b/external/com_github_libp2p_go_libp2p_core/github.com/libp2p/go-libp2p-core/crypto/pb/ for a BUILD file.
Anyway, this is most likely an issue with a wrong configuration of Gazelle, not a bug within Bazel. Please prefer to use the other communication channels for user support (bazel-discuss@googlegroups.com, https://slack.bazel.build, etc).
The error message says "no such package '@com_github_libp2p_go_libp2p_core//github.com/libp2p/go-libp2p-core/crypto/pb'"; so you should check /home/cyyber/.cache/bazel/_bazel_cyyber/3a49417b1dd1f87823292d1011bf771b/external/com_github_libp2p_go_libp2p_core/github.com/libp2p/go-libp2p-core/crypto/pb/ for a BUILD file.
Anyway, this is most likely an issue with a wrong configuration of Gazelle, not a bug within Bazel. Please prefer to use the other communication channels for user support (bazel-discuss@googlegroups.com, https://slack.bazel.build, etc).
Already checked the above and mentioned the same under the question "Any other information, logs, or outputs that you want to share?"
Description of the bug:
The above command gives following error
However, the project builds itself without any issue if I use go build. The following works perfectly fine.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
Ubuntu 21.10
What is the output of
bazel info release
?release 5.2.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
I checked /home/cyyber/.cache/bazel/_bazel_cyyber/3a49417b1dd1f87823292d1011bf771b/external/com_github_libp2p_go_libp2p_core/crypto/pb/ and the BUILD.bazel exists there, which is automatically generated by bazel.