From 8db4c4b062dc103bcb40dd5210b7a30cc95144c5 Mon Sep 17 00:00:00 2001 From: Sanaa Syed Date: Mon, 3 Jun 2024 22:22:03 -0400 Subject: [PATCH] Fix lint error message adn reduce build error message to a string concatination. --- kustomize/commands/localize/localize.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kustomize/commands/localize/localize.go b/kustomize/commands/localize/localize.go index f2248e260..5aaa9bb41 100644 --- a/kustomize/commands/localize/localize.go +++ b/kustomize/commands/localize/localize.go @@ -134,7 +134,9 @@ func runBuildCmd(buffer bytes.Buffer, cmd *cobra.Command, folder string) (buildO buffer.Reset() buildErr := cmd.RunE(cmd, []string{folder}) if buildErr != nil { - log.Printf("If your target directory requires flags to build: \n 1. Add executable permissions for the downloaded exec binaries in '%s'. \n 2. Run kustomize build with the necessary flags and self-verify the outputs.", folder) + log.Printf("If your target directory requires flags to build: \n"+ + "1. Add executable permissions for the downloaded exec binaries in '%s'. \n"+ + "2. Run kustomize build with the necessary flags and self-verify the outputs.", folder) return "", errors.Wrap(buildErr) }