diff options
Diffstat (limited to 'community/chezmoi/build')
-rwxr-xr-x | community/chezmoi/build | 4 |
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" |