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

Issue #1965 - Fix label resolution for non-captured regex #1969

Closed alandonham closed 2 weeks ago

alandonham commented 3 weeks ago

What type of PR is this? Bug fix

What package or component does this PR mostly affect? resolve

What does this PR do? Why is it needed? This change resolves an issue with regex_replace where the default behavior attempts to perform a string replacement using regex, but results in an invalid label.

Which issues(s) does this PR fix? Fixes #1965

Other notes for review