1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
2018-09-12 14:18:01 -03:00

20 lines
452 B
Go

// Package snapshot provides the snapshoting functionality to goreleaser.
package snapshot
import "github.com/goreleaser/goreleaser/pkg/context"
// Pipe for checksums
type Pipe struct{}
func (Pipe) String() string {
return "snapshoting"
}
// Default sets the pipe defaults
func (Pipe) Default(ctx *context.Context) error {
if ctx.Config.Snapshot.NameTemplate == "" {
ctx.Config.Snapshot.NameTemplate = "SNAPSHOT-{{ .Commit }}"
}
return nil
}