Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
[trivial] pass ldflags for version build (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak authored Feb 7, 2022
1 parent d421dff commit 24fc605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ verify: lint test
.PHONY: build
build:
@echo "### Building"
go build -mod vendor -o goflow-kube cmd/goflow-kube.go
go build -ldflags "-X main.version=${VERSION}" -mod vendor -o goflow-kube cmd/goflow-kube.go

.PHONY: image
image:
Expand Down
2 changes: 1 addition & 1 deletion cmd/goflow-kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (

const netflowScheme = "netflow"
const legacyScheme = "nfl"
const app = "goflow-kube"

var (
version = "unknown"
app = "goflow-kube"
mainConfigPath = flag.String("config", "", "absolute path to the main configuration file")
kubeConfigPath = flag.String("kubeconfig", "", "absolute path to a kubeconfig file for advanced kube client configuration")
logLevel = flag.String("loglevel", "info", "log level")
Expand Down

0 comments on commit 24fc605

Please sign in to comment.