From dfd43fd8dfb94093612c18a9273b6fa6dcb50d9c Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 19 Aug 2022 17:19:08 +0200 Subject: [PATCH] goreleaser: Use correct ldflag (versionPrerelease) when compiling LS --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 727c08cd..a67e514f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,7 +9,7 @@ builds: - -trimpath - -tags=preloadschema ldflags: - - '-s -w -X "main.version={{ .RawVersion }}" -X "main.prerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"{{ if not .IsSnapshot }} -X "main.algoliaAppID={{ .Env.ALGOLIA_APP_ID }}" -X "main.algoliaAPIKey={{ .Env.ALGOLIA_API_KEY }}"{{ end }}' + - '-s -w -X "main.version={{ .RawVersion }}" -X "main.versionPrerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"{{ if not .IsSnapshot }} -X "main.algoliaAppID={{ .Env.ALGOLIA_APP_ID }}" -X "main.algoliaAPIKey={{ .Env.ALGOLIA_API_KEY }}"{{ end }}' goarch: - '386' - amd64 @@ -35,7 +35,7 @@ builds: - -trimpath - -tags=preloadschema ldflags: - - '-s -w -X "main.version={{ .RawVersion }}" -X "main.prerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"{{ if not .IsSnapshot }} -X "main.algoliaAppID={{ .Env.ALGOLIA_APP_ID }}" -X "main.algoliaAPIKey={{ .Env.ALGOLIA_API_KEY }}"{{ end }}' + - '-s -w -X "main.version={{ .RawVersion }}" -X "main.versionPrerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"{{ if not .IsSnapshot }} -X "main.algoliaAppID={{ .Env.ALGOLIA_APP_ID }}" -X "main.algoliaAPIKey={{ .Env.ALGOLIA_API_KEY }}"{{ end }}' goarch: - '386' - amd64