Skip to content

Commit

Permalink
fix(goreleaser): Version and Git SHA (still) not properly passed in 😅
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Dec 19, 2024
1 parent c115a83 commit fcad658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
- linux
- darwin
ldflags:
- -s -w
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}

archives:
- format: tar.gz
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ var (
func main() {
logging.Init()

log.Infof("starting external-dns-provider-mikrotik")
log.Infof("version: %s (%s)", version, commit)
log.Infof("starting external-dns-provider-mikrotik version: %s (%s)", version, commit)

config := configuration.Init()
provider, err := dnsprovider.Init(config)
Expand Down

0 comments on commit fcad658

Please sign in to comment.