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

refactor: embed gazelle generation_test_binary in gazelle_generation_test instead of recompiling #1875

Closed jbedard closed 1 month ago

jbedard commented 1 month ago

What type of PR is this? Other

What package or component does this PR mostly affect? all

What does this PR do? Why is it needed?

Try to reduce the re-compiling of the same go files for every single test. I think using embed is no faster because it is linking that is slow? Still seems like a step in the right direction though.