From 14e93c63903dda62f776c961fe5c0544400bf9aa Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 13 Dec 2018 11:01:39 -0200 Subject: [PATCH] fix: breaking: changed snapshot default name tmpl --- internal/pipe/snapshot/snapshot.go | 2 +- www/content/snapshots.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pipe/snapshot/snapshot.go b/internal/pipe/snapshot/snapshot.go index 8886626d6..84c135fdd 100644 --- a/internal/pipe/snapshot/snapshot.go +++ b/internal/pipe/snapshot/snapshot.go @@ -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 } diff --git a/www/content/snapshots.md b/www/content/snapshots.md index 8d056e6e8..bfc0b3bff 100644 --- a/www/content/snapshots.md +++ b/www/content/snapshots.md @@ -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}} ```