Closed tyler-french closed 2 months ago
@jbedard We need to roll this change back as it breaks the public resolver API, which has a legitimate need to access other rule fields. Do you see a way to reland the desired behavior without touching public API?
I'll look at it again if we must revert it.
Is this actually a publicly documented API though?
I'll look at it again if we must revert it.
Is this actually a publicly documented API though?
https://pkg.go.dev/github.com/bazelbuild/bazel-gazelle@v0.38.0/resolve#NewRuleIndex
We need access to
rule.Name()
as well asrule.Kind()
in mapped resolver.