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

Allow specifying default patches for go_deps and add patch for go-tree-sitter #1985

Open maffoo opened 6 hours ago

maffoo commented 6 hours ago

Feature

What package or component does this PR mostly affect?

go_deps

What does this PR do? Why is it needed?

Allows specifying default patches for libraries included via go_deps, similar to how other default args like build_directives can be specified.

Which issues(s) does this PR fix?

Fixes #1984

Other notes for review

Also includes a patch to build recent versions of go-tree-sitter since they include uplevel references to c header files that gazelle does not handle.