From be4f484c49948ed7383b664f8eb7b413dfc90b58 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Wed, 21 Aug 2024 11:16:32 -0700 Subject: [PATCH] refactor: process KindMap even when not indexing (#1882) **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?** I think kind mapping is unrelated to whether indexing is enabled or not? --- cmd/gazelle/fix-update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gazelle/fix-update.go b/cmd/gazelle/fix-update.go index 93d4b0885..644203f51 100644 --- a/cmd/gazelle/fix-update.go +++ b/cmd/gazelle/fix-update.go @@ -316,10 +316,10 @@ func runFixUpdate(wd string, cmd command, args []string) (err error) { // If this file is ignored or if Gazelle was not asked to update this // directory, just index the build file and move on. if !update { + for _, repl := range c.KindMap { + mrslv.MappedKind(rel, repl) + } if c.IndexLibraries && f != nil { - for _, repl := range c.KindMap { - mrslv.MappedKind(rel, repl) - } for _, r := range f.Rules { ruleIndex.AddRule(c, r, f) }