Gazelle is a Bazel build file generator for Bazel projects. It natively supports Go and protobuf, and it may be extended to support new languages and custom rule sets.
Run bazel build @com_github_pseudomuto_protoc_gen_doc//extensions/validator_field
What did you expect to see?
Build completes successfully
What did you see instead?
ERROR: no such package '@@[unknown repo 'com_github_mwitkow_go_proto_validators' requested from @@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc]//': The repository '@@[unknown repo 'com_github_mwitkow_go_proto_validators' requested from @@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc]' could not be resolved: No repository visible as '@com_github_mwitkow_go_proto_validators' from repository '@@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc'
ERROR: /private/var/tmp/_bazel_zplin/b44d72da7f9647162d3d0b95cd9d5b5a/external/gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc/extensions/validator_field/BUILD.bazel:3:11: no such package '@@[unknown repo 'com_github_mwitkow_go_proto_validators' requested from @@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc]//': The repository '@@[unknown repo 'com_github_mwitkow_go_proto_validators' requested from @@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc]' could not be resolved: No repository visible as '@com_github_mwitkow_go_proto_validators' from repository '@@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc' and referenced by '@@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc//extensions/validator_field:validator_field'
ERROR: Analysis of target '@@gazelle~0.35.0~go_deps~com_github_pseudomuto_protoc_gen_doc//extensions/validator_field:validator_field' failed; build aborted: Analysis failed
INFO: Elapsed time: 13.517s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
Could you try adding an import of github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc to your tools.go? The top-level Go package does not seem to depend on the extensions.
What version of gazelle are you using?
0.35.0
What version of rules_go are you using?
0.44.0
What version of Bazel are you using?
7.0.0
Does this issue reproduce with the latest releases of all the above?
YES
What operating system and processor architecture are you using?
macOS and Linux ARM64
What did you do?
Create a small workspace like this:
Run
bazel build @com_github_pseudomuto_protoc_gen_doc//extensions/validator_field
What did you expect to see?
Build completes successfully
What did you see instead?