Skip to content

Commit

Permalink
Fix kubeBuilderVersion check string
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Volodin <[email protected]>
  • Loading branch information
migueleliasweb and dmvolod authored Jan 18, 2025
1 parent 460b97a commit 1322ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type version struct {

// versionString returns the CLI version
func versionString() string {
if kubeBuilderVersion == "" {
if kubeBuilderVersion == unknown {
if info, ok := debug.ReadBuildInfo(); ok && info.Main.Version != "" {
kubeBuilderVersion = info.Main.Version
}
Expand Down

0 comments on commit 1322ae1

Please sign in to comment.