Skip to content

Commit

Permalink
Fix: Ensure constant format strings in fmt and printf calls (#1643)
Browse files Browse the repository at this point in the history
Go 1.24 introduces stricter checks for format string validation.
This commit fixes instances where non-constant format strings were
used in calls to functions like `fmt.Errorf`, `fmt.Printf`, and similar.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
  • Loading branch information
mikelolasagasti authored Jan 20, 2025
1 parent 1c28f54 commit eff4239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func RunKubernetesOneClickInstall(c *CmdConfig) error {
return err
}

notice(oneClickInstall)
notice("%s", oneClickInstall)
return nil
}

Expand Down Expand Up @@ -784,7 +784,7 @@ func (s *KubernetesCommandService) RunKubernetesClusterCreate(defaultNodeSize st
if err != nil {
warn("Failed to kick off 1-Click Application(s) install")
} else {
notice(messageResponse)
notice("%s", messageResponse)
}
}

Expand Down

0 comments on commit eff4239

Please sign in to comment.