mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
64b1f14a86
* refactor: merging archive in the same repo * refactor: merging archive in the same repo * refactor: better organizing packages * refactor: fixing renames * fix: new dep version * fix: makefile * fix: zip/tar tests * fix: gitigonore * fix: s3 tests * fix: archive test
20 lines
452 B
Go
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
|
|
}
|