Skip to content

Commit

Permalink
fix(goreleaser): Version and Git SHA not properly passed in (#150)
Browse files Browse the repository at this point in the history
* fix(goreleaser): Version and Git SHA not properly passed in

* try lowercase?

* try using default ldflags
  • Loading branch information
mircea-pavel-anton authored Dec 19, 2024
1 parent 30db4d1 commit c115a83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 -X github.com/mirceanton/{{.ProjectName}}/cmd.version={{.Version}}
- -s -w

archives:
- format: tar.gz
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import (
)

var (
Version = "local"
Gitsha = "?"
version = "dev"
commit = "none"
)

func main() {
logging.Init()

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

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

0 comments on commit c115a83

Please sign in to comment.