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

Use rules_shell for shell targets #1960

Closed ted-xie closed 2 weeks ago

ted-xie commented 1 month ago

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

all

What does this PR do? Why is it needed?

Adds an explicit load (and dep) for sh_binary, which is no longer packaged inside Bazel 8. This is backwards-compatible with Bazel 7.

Which issues(s) does this PR fix?

Fixes https://github.com/bazel-contrib/bazel-gazelle/issues/1959

Other notes for review