1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

fix: breaking: changed snapshot default name tmpl

This commit is contained in:
Carlos Alexandro Becker 2018-12-13 11:01:39 -02:00 committed by Carlos Alexandro Becker
parent a69ef61d60
commit 14e93c6390
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func (Pipe) String() string {
// Default sets the pipe defaults
func (Pipe) Default(ctx *context.Context) error {
if ctx.Config.Snapshot.NameTemplate == "" {
ctx.Config.Snapshot.NameTemplate = "SNAPSHOT-{{ .Commit }}"
ctx.Config.Snapshot.NameTemplate = "SNAPSHOT-{{ .ShortCommit }}"
}
return nil
}

View File

@ -14,7 +14,7 @@ and also with the `snapshot` customization section:
# .goreleaser.yml
snapshot:
# Allows you to change the name of the generated snapshot
# Default is `SNAPSHOT-{{.Commit}}`.
# Default is `SNAPSHOT-{{.ShortCommit}}`.
name_template: SNAPSHOT-{{.Commit}}
```