bazel-contrib / bazel-gazelle

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.
Apache License 2.0
1.19k stars 378 forks source link

Feature request for extensions: Support bzlmod test cases for gazelle_generation_test #1947

Open gonzojive opened 1 week ago

gonzojive commented 1 week ago

What version of gazelle are you using?

v0.39.1

What version of rules_go are you using?

n/a

What version of Bazel are you using?

$ bazel version
Bazelisk version: development
Build label: 7.2.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Jun 25 15:53:05 2024 (1719330785)
Build timestamp: 1719330785
Build timestamp as int: 1719330785

Does this issue reproduce with the latest releases of all the above?

Yes

What operating system and processor architecture are you using?

linux

What did you do?

Added a test case for gazelle_generation_test with a MODULE.bazel file instead of a WORKSPACE file.

What did you expect to see?

Expected gazelle_generation_test to test the directory just like a WORKSPACE test case.

What did you see instead?

The test directory was ignored gazelle_generation_test.