1
0
mirror of synced 2026-02-07 11:15:57 +00:00

Set tk version at release time

This commit is contained in:
stefanprodan
2020-05-29 18:29:26 +03:00
parent 2cf33b04f9
commit f231107869
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
builds: builds:
- main: ./cmd/tk - main: ./cmd/tk
ldflags:
- -s -w -X main.VERSION={{ .Version }}
binary: tk binary: tk
goos: goos:
- darwin - darwin

View File

@@ -11,7 +11,7 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth" _ "k8s.io/client-go/plugin/pkg/client/auth"
) )
var VERSION = "0.0.1-alpha.1" var VERSION = "0.0.0-dev.0"
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "tk", Use: "tk",