Skip to content

Commit

Permalink
"version" flag doesn't dump the real release version (#81)
Browse files Browse the repository at this point in the history
[#69] "version" flag doesn't dump the real release version

- added ldflags for "suite-connector", "file-upload" and "software-update" for proper version generation

Signed-off-by: Daniel Milchev <[email protected]>
  • Loading branch information
daniel-milchev authored Aug 26, 2022
1 parent 73b7289 commit 71de0a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ builds:
gcflags:
- all=-trimpath={{ .Env.GOPATH }}
ldflags:
- -s -w
- -s -w -X main.version={{ .Version }}
mod_timestamp: '{{ .CommitTimestamp }}'
- id: build-suite-connector-deb
dir: ./build-tmp/suite-connector
Expand All @@ -47,7 +47,7 @@ builds:
gcflags:
- all=-trimpath={{ .Env.GOPATH }}
ldflags:
- -s -w
- -s -w -X main.version={{ .Version }}
mod_timestamp: '{{ .CommitTimestamp }}'
# container-management builds
- id: build-container-management
Expand Down Expand Up @@ -172,7 +172,7 @@ builds:
gcflags:
- all=-trimpath={{ .Env.GOPATH }}
ldflags:
- -s -w
- -s -w -X main.version={{ .Version }}
mod_timestamp: '{{ .CommitTimestamp }}'
- id: build-file-upload-deb
dir: ./build-tmp/file-upload
Expand All @@ -195,7 +195,7 @@ builds:
gcflags:
- all=-trimpath={{ .Env.GOPATH }}
ldflags:
- -s -w
- -s -w -X main.version={{ .Version }}
mod_timestamp: '{{ .CommitTimestamp }}'
# software-update builds
- id: build-software-update
Expand All @@ -219,7 +219,7 @@ builds:
gcflags:
- all=-trimpath={{ .Env.GOPATH }}
ldflags:
- -s -w
- -s -w -X main.version={{ .Version }}
mod_timestamp: '{{ .CommitTimestamp }}'
- id: build-software-update-deb
dir: ./build-tmp/software-update
Expand All @@ -242,7 +242,7 @@ builds:
gcflags:
- all=-trimpath={{ .Env.GOPATH }}
ldflags:
- -s -w
- -s -w -X main.version={{ .Version }}
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- id: kanto-archive-all
Expand Down

0 comments on commit 71de0a8

Please sign in to comment.