use GIT_TAG to override Version

This commit is contained in:
Mikaël Cluseau 2024-01-07 11:09:20 +01:00
parent b5b7272603
commit 40555818b1

View File

@ -1,3 +1,3 @@
#! /bin/sh
set -ex
go build -o dist/ -trimpath -ldflags "-X main.Version=$(git describe --always --dirty)" $*
go build -o dist/ -trimpath -ldflags "-X main.Version=${GIT_TAG:-$(git describe --always --dirty)}" $*