Remove version package (#667)

This moves version declaration into cmd/virtual-kubelet/main.go
From here values are passed down into the things that need it.
This commit is contained in:
Brian Goff
2019-06-14 12:19:39 -07:00
committed by Pires
parent cacce3b288
commit c6fdae931a
7 changed files with 17 additions and 23 deletions

View File

@@ -142,7 +142,7 @@ setup: goimports gocovmerge goreleaser gox clean
VERSION := $(shell git describe --tags --always --dirty="-dev")
DATE := $(shell date -u '+%Y-%m-%d-%H:%M UTC')
VERSION_FLAGS := -ldflags='-X "github.com/virtual-kubelet/virtual-kubelet/version.Version=$(VERSION)" -X "github.com/virtual-kubelet/virtual-kubelet/version.BuildTime=$(DATE)"'
VERSION_FLAGS := -ldflags='-X "main.buildVersion=$(VERSION)" -X "main.buildTime=$(DATE)"'
# assuming go 1.9 here!!
_allpackages = $(shell go list ./...)