Skip to content

Commit

Permalink
update goreleaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd committed Sep 10, 2023
1 parent 99373a3 commit 0b8e92d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ builds:
binary: amtui
env:
- CGO_ENABLED=0
ldflags: -s -w -X pkg.versionString={{.Version}} -X pkg.commit={{.Commit}} -X pkg.date={{.Date}}
ldflags: -s -w -X pkg.versionString={{.Tag}}
goos:
- linux
- darwin
Expand Down
4 changes: 1 addition & 3 deletions pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Options:

var (
versionString string
date string
commit string
fl = flag.NewFlagSet("amtui", flag.ExitOnError)
host = fl.String("host", "localhost", "Alertmanager host")
port = fl.StringP("port", "p", "9093", "Alertmanager port")
Expand Down Expand Up @@ -79,7 +77,7 @@ func initConfig() Config {
}

if *version {
fmt.Printf("amtui version: v%s\nReleased at: %s\nCommit: %s\n", versionString, date, commit)
fmt.Printf("amtui version: v%s\n", versionString)
os.Exit(0)
}

Expand Down

0 comments on commit 0b8e92d

Please sign in to comment.