Skip to content

Commit

Permalink
Merge pull request #2572 from carapace-sh/goreleaser-use-defaults
Browse files Browse the repository at this point in the history
goreleaser: use defaults
  • Loading branch information
rsteube authored Oct 27, 2024
2 parents 869d13d + 0bf67d3 commit e46a333
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ archives:
- termux
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}.termux'

checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

brews:
-
name: carapace
Expand Down
2 changes: 1 addition & 1 deletion cmd/carapace/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var rootCmd = &cobra.Command{
case "-h", "--help":
cmd.Help()
case "-v", "--version":
println(cmd.Version)
println("carapace-bin " + cmd.Version)
case "--list":
listCmd.SetArgs(args[1:])
listCmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion cmd/carapace/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var commit, date string
var version = "develop"

func main() {
if strings.HasSuffix(version, "-next") {
if strings.Contains(version, "SNAPSHOT") {
version += fmt.Sprintf(" (%v) [%v]", date, commit)
}
cmd.Execute(version)
Expand Down

0 comments on commit e46a333

Please sign in to comment.