From 59708b28bc95b53ee8379d30f6eef2b96420b8b5 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 10 Mar 2022 07:17:35 +1300 Subject: [PATCH] build: set the `date` variable to be the date of the latest commit (#47) --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c2e9606f..c978eb7a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,7 +13,7 @@ builds: flags: - -trimpath ldflags: - - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' + - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}}' goos: - freebsd - windows