Skip to content

Commit 81a9313

Browse files
Fix: Non-constant format string in PrintWarning (#877)
Signed-off-by: Mikel Olasagasti Uranga <[email protected]>
1 parent b1ac5bf commit 81a9313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/krew/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func init() {
114114
func preRun(_ *cobra.Command, _ []string) error {
115115
// check must be done before ensureDirs, to detect krew's self-installation
116116
if !internal.IsBinDirInPATH(paths) {
117-
internal.PrintWarning(os.Stderr, internal.SetupInstructions()+"\n\n")
117+
internal.PrintWarning(os.Stderr, "%s", internal.SetupInstructions()+"\n\n")
118118
}
119119

120120
if err := ensureDirs(paths.BasePath(),

0 commit comments

Comments
 (0)