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:
parent
a69ef61d60
commit
14e93c6390
@ -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
|
||||
}
|
||||
|
@ -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}}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user