goreleaser: use defaults

This commit is contained in:
rsteube 2024-10-27 13:33:28 +01:00
parent 4e754a8dcf
commit 0bf67d3b29
3 changed files with 2 additions and 13 deletions

View File

@ -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

View File

@ -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()

View File

@ -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)