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
Does this issue reproduce with the latest releases of all the above?
Those are latest releases
What operating system and processor architecture are you using?
linux/amd64
What did you do?
When github.com/envoyproxy/protoc-gen-validate/validate is imported by some go code, its BUILD file references to rules_cc and rules_java, which would cause build to fail if I disable gazelle:proto, even if I added them to MODULES.bazel. here is a minimal reproducer:
$ bazel build :test-gazelle
ERROR: error loading package '@@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate//validate': Unable to find package for @@[unknown repo 'rules_java' requested from @@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate]//java:defs.bzl: The repository '@@[unknown repo 'rules_java' requested from @@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate]' could not be resolved: No repository visible as '@rules_java' from repository '@@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate'.
ERROR: /home/fishy/work/test-gazelle/BUILD.bazel:7:11: error loading package '@@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate//validate': Unable to find package for @@[unknown repo 'rules_java' requested from @@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate]//java:defs.bzl: The repository '@@[unknown repo 'rules_java' requested from @@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate]' could not be resolved: No repository visible as '@rules_java' from repository '@@gazelle~~go_deps~com_github_envoyproxy_protoc_gen_validate'. and referenced by '//:test-gazelle_lib'
ERROR: Analysis of target '//:test-gazelle' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.133s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
We only need to go lib there, I was hoping there's a way to ignore rules_cc and rules_java that's not really used by the go_library
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered:
What version of gazelle are you using?
0.40.0
What version of rules_go are you using?
0.50.1
What version of Bazel are you using?
7.4.1
Does this issue reproduce with the latest releases of all the above?
Those are latest releases
What operating system and processor architecture are you using?
linux/amd64
What did you do?
When
github.com/envoyproxy/protoc-gen-validate/validate
is imported by some go code, itsBUILD
file references torules_cc
andrules_java
, which would cause build to fail if I disablegazelle:proto
, even if I added them toMODULES.bazel
. here is a minimal reproducer:We only need to go lib there, I was hoping there's a way to ignore
rules_cc
andrules_java
that's not really used by thego_library
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: