We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a118fa commit 9d3d0f2Copy full SHA for 9d3d0f2
Makefile
@@ -50,7 +50,7 @@ endif
50
go build \
51
-tags core,ebpf \
52
-v \
53
- -ldflags="-s -w -X 'main.version=${GITHUB_REF_NAME}'" \
+ -ldflags="-s -w -X 'github.com/alegrey91/harpoon/cmd.Version=${GITHUB_REF_NAME}'" \
54
-o ${BINARY_DIR}/${BINARY_NAME} \
55
.
56
cmd/version.go
@@ -21,14 +21,14 @@ import (
21
"github.com/spf13/cobra"
22
)
23
24
-var version = "test"
+var Version = "test"
25
26
// captureCmd represents the create args
27
var versionCmd = &cobra.Command{
28
Use: "version",
29
Short: "Version of the tool.",
30
Run: func(cmd *cobra.Command, args []string) {
31
- fmt.Println(version)
+ fmt.Println(Version)
32
},
33
}
34
0 commit comments