1
0
duplikat dari https://github.com/quitesimpleorg/hs9001.git synced 2026-02-02 05:20:30 +01:00

Add 'version' command

This commit is contained in:
2021-05-16 18:38:33 +02:00
orang tua c206b07b2d
melakukan 216e59747c
2 mengubah file dengan 11 tambahan dan 0 penghapusan

6
Makefile Normal file
Melihat File

@@ -0,0 +1,6 @@
GIT_COMMIT=$(shell git rev-list -1 HEAD)
GIT_TAG=$(shell git tag --sort="-version:refname" | head -n 1)
all:
go build -ldflags "-X main.GitCommit=${GIT_COMMIT} -X main.GitTag=${GIT_TAG}"