1
0
鏡像自 https://github.com/quitesimpleorg/hs9001.git 已同步 2025-10-30 21:39:28 +01:00

Add 'version' command

此提交包含在:
2021-05-16 18:38:33 +02:00
父節點 c206b07b2d
當前提交 216e59747c
共有 2 個檔案被更改,包括 11 行新增0 行删除

6
Makefile 一般檔案
查看文件

@@ -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}"