Skip to content

Commit

Permalink
Fix goreleaser (#64)
Browse files Browse the repository at this point in the history
* Fix `goreleaser`

* Fix `goreleaser`
  • Loading branch information
aknysh authored Oct 22, 2021
1 parent 9da16c8 commit a51156b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ builds:
binary: atmos
ldflags:
# Set `atmos` version to the GitHub release tag using Go `ldflags`
- '-s -w -X "atmos/cmd.Version={{.Env.GORELEASER_CURRENT_TAG}}"'
- '-s -w -X "github.com/cloudposse/atmos/cmd.Version={{.Env.GORELEASER_CURRENT_TAG}}"'

archives:
- format: binary
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

version="0.0.1"

go build -o build/atmos -v -ldflags "-X 'atmos/cmd.Version=$version'"
go build -o build/atmos -v -ldflags "-X 'github.com/cloudposse/atmos/cmd.Version=$version'"

# https://www.digitalocean.com/community/tutorials/using-ldflags-to-set-version-information-for-go-applications
# https://blog.kowalczyk.info/article/vEja/embedding-build-number-in-go-executable.html
Expand Down

0 comments on commit a51156b

Please sign in to comment.