Fix version compiled into debian signaldctl

This commit is contained in:
Finn 2021-08-07 13:43:56 -07:00
parent 5b98b6b136
commit 474897ea53

2
debian/rules vendored
View file

@ -3,7 +3,7 @@
export DH_GOLANG_EXCLUDES := tools/
PKG := gitlab.com/signald/signald-go
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Version=$(DEB_VERSION)
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Version=$(./version.sh)
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Branch=$(shell debian/get-branch.sh)
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Commit=$(CI_BUILD_REF)