aboutsummaryrefslogtreecommitdiff
path: root/community/chezmoi/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-16 11:54:44 +0300
committerCem Keylan <cem@ckyln.com>2021-07-16 11:54:44 +0300
commit3543e68a89b06655cb42464909dcaac401cf235c (patch)
tree5f1533252990d37ae980deb6c8ebb0de2fba7282 /community/chezmoi/build
parent4ef15296443ce527bd3c41a6fa3a399b5f96d433 (diff)
downloadrepository-3543e68a89b06655cb42464909dcaac401cf235c.tar.gz
chezmoi: bump to 2.1.2
Diffstat (limited to 'community/chezmoi/build')
-rwxr-xr-xcommunity/chezmoi/build4
1 files changed, 2 insertions, 2 deletions
diff --git a/community/chezmoi/build b/community/chezmoi/build
index 02ccd498..48bddfea 100755
--- a/community/chezmoi/build
+++ b/community/chezmoi/build
@@ -3,6 +3,6 @@
export GOPATH=$PWD/gopath
trap "go clean -modcache" EXIT INT
go mod vendor
-
-CGO_ENABLED=0 go build -ldflags="-X 'main.version=$2'"
+date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
+CGO_ENABLED=0 go build -ldflags="-X 'main.version=$2' -X 'main.commit=null' -X 'main.builtBy=cpt' -X 'main.date=$date'"
install -Dm755 chezmoi "$1/usr/bin/chezmoi"