From 64f790bf90cb31b74d2fa9f2636e6af829236f4d Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sat, 9 Nov 2024 22:37:52 +0100 Subject: [PATCH] feat(goreleaser): update build command to use `.ModulePath` variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change hardcoded module path to dynamic reference 🤖 --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9bdad83..77a3e60 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,7 +16,7 @@ builds: env: - CGO_ENABLED=0 ldflags: - - -s -w -X git.smsvc.net/pomodoro/GoTomato/internal/metadata.GoTomatoVersion={{.Version}} + - -s -w -X {{.ModulePath}}/internal/metadata.GoTomatoVersion={{.Version}} upx: - enabled: true