From: Simon Ruderich Date: Mon, 31 May 2021 20:31:13 +0000 (+0200) Subject: safcm: add commit date to version output X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a950980d2e302547743fb567d0636b766f4e9704;p=safcm%2Fsafcm.git safcm: add commit date to version output --- diff --git a/Makefile b/Makefile index 4bf77c2..b21ed3d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ LDFLAGS = '\ - -X "main.versionGit=$(shell git describe --long --tags --dirty --always)" \ + -X "main.versionGit=$(shell git describe --long --tags --dirty --always) \ +$(shell git show --no-patch --pretty=format:%as)" \ -X "main.versionGo=$(shell go version)" \ ' # Build with `make GOFLAGS=` if -race is not supported