Skip to content

Commit

Permalink
goreleaser: Use correct ldflag (versionPrerelease) when compiling LS (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Aug 22, 2022
1 parent 25f05fd commit 8a410a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8a410a0

Please sign in to comment.