Skip to content

Commit

Permalink
add ldflags to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaysomani07 committed Feb 28, 2023
1 parent 2690027 commit d0c1327
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Expand Up @@ -12,6 +12,9 @@ builds:

flags:
- -trimpath

ldflags:
- -s -w -X github.com/one2nc/cloudlens/cmd.version=v{{.Version}} -X github.com/one2nc/cloudlens/cmd.commit={{.Commit}} -X github.com/one2nc/cloudlens/cmd.date={{.Date}}
release:
prerelease: auto

Expand Down

0 comments on commit d0c1327

Please sign in to comment.