Skip to content

Commit

Permalink
fix ldflags version flag unset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalpress committed May 4, 2023
1 parent 31c9dc2 commit b4b7c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ terraform/terrap
.DS_Store
.notes
diffSets.json
.idea
dist
vendor
3 changes: 1 addition & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ builds:
- -mod=vendor

env:
- TERRAP_VERSION=${GITHUB_REF#refs/*/}
- CGO_ENABLED=0

ldflags:
- -X "github.com/sirrend/terrap-cli/internal/version.Version={{.Env.TERRAP_VERSION}}"
- -X "github.com/sirrend/terrap-cli/internal/version.Version={{.Tag}}"

release:
prerelease: auto
Expand Down

0 comments on commit b4b7c3d

Please sign in to comment.