From e9b4d1820c8e64472885a474b9200876bfa7e826 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Tue, 23 Jan 2024 21:01:38 +0100 Subject: [PATCH] fix: correcting ldflags name Signed-off-by: Dario Tranchitella --- .goreleaser.yml | 4 ++-- Makefile | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 650279df5..147f4ac1b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,8 +25,8 @@ builds: -X main.Version={{ .Tag }} -X main.GitCommit={{ .Commit }} -X main.GitTag={{ .Tag }} - -X main.GitTreeState={{ .Date }} - -X main.BuildDate={{ .Date }} + -X main.GitDirty={{ .Date }} + -X main.BuildTime={{ .Date }} -X main.GitRepo={{ .ProjectName }} release: prerelease: auto diff --git a/Makefile b/Makefile index 592c6e748..97715d8ff 100644 --- a/Makefile +++ b/Makefile @@ -193,10 +193,9 @@ endif LD_FLAGS := "-X main.Version=$(VERSION) \ -X main.GitCommit=$(GIT_HEAD_COMMIT) \ -X main.GitTag=$(VERSION) \ - -X main.GitTreeState=$(GIT_MODIFIED) \ - -X main.BuildDate=$(BUILD_DATE) \ + -X main.GitDirty=$(GIT_MODIFIED) \ + -X main.BuildTime=$(BUILD_DATE) \ -X main.GitRepo=$(GIT_REPO)" - # Docker Image Build # ------------------