Skip to content

--version output empty

obj-x86_64-linux-gnu/bin/vip-manager --version
version: master
commit:  none
date:    unknown

Pavlo says we should use this:

go build -buildvcs=false -ldflags "-X main.commit=${COMMIT} -X main.version=${VERSION} -X main.date=${DATE}" -o vipmanager .

... but the DH golang buildsystem is actually using "go install" instead of "go build" and adding the flags to DH_GOLANG_BUILDPKG just fails.

Someone who understands go better than me will have to figure this out.