From ca631840626256a9f20b9b2081db7ca2167998f8 Mon Sep 17 00:00:00 2001 From: Sergei Lukianov Date: Tue, 22 Oct 2024 14:57:32 -0700 Subject: [PATCH] Fix hhfctl version --- cmd/hhfctl/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/hhfctl/main.go b/cmd/hhfctl/main.go index 9b878ecd..dac65481 100644 --- a/cmd/hhfctl/main.go +++ b/cmd/hhfctl/main.go @@ -31,12 +31,11 @@ import ( vpcapi "go.githedgehog.com/fabric/api/vpc/v1beta1" "go.githedgehog.com/fabric/pkg/hhfctl" "go.githedgehog.com/fabric/pkg/hhfctl/inspect" + "go.githedgehog.com/fabric/pkg/version" "k8s.io/klog/v2" ctrl "sigs.k8s.io/controller-runtime" ) -var version = "(devel)" - func setupLogger(verbose bool) error { logLevel := slog.LevelInfo if verbose { @@ -140,7 +139,7 @@ func main() { app := &cli.App{ Name: appName, Usage: usage, - Version: version, + Version: version.Version, Suggest: true, UseShortOptionHandling: true, EnableBashCompletion: true,