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.21k stars 381 forks source link

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

Closed jbedard closed 3 months ago

jbedard commented 3 months 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.