diff --git a/internal/pipe/snapshot/snapshot.go b/internal/pipe/snapshot/snapshot.go index acdb8521d..c4d469f65 100644 --- a/internal/pipe/snapshot/snapshot.go +++ b/internal/pipe/snapshot/snapshot.go @@ -9,7 +9,7 @@ import ( "github.com/goreleaser/goreleaser/pkg/context" ) -// Pipe for checksums. +// Pipe for setting up the snapshot feature.. type Pipe struct{} func (Pipe) String() string { return "snapshotting" } @@ -26,7 +26,7 @@ func (Pipe) Default(ctx *context.Context) error { func (Pipe) Run(ctx *context.Context) error { name, err := tmpl.New(ctx).Apply(ctx.Config.Snapshot.NameTemplate) if err != nil { - return fmt.Errorf("failed to generate snapshot name: %w", err) + return fmt.Errorf("failed to parse snapshot name: %w", err) } if name == "" { return fmt.Errorf("empty snapshot name") diff --git a/internal/pipeline/pipeline.go b/internal/pipeline/pipeline.go index 51c30fbae..d81e358aa 100644 --- a/internal/pipeline/pipeline.go +++ b/internal/pipeline/pipeline.go @@ -59,10 +59,10 @@ var BuildPipeline = []Piper{ semver.Pipe{}, // load default configs defaults.Pipe{}, - // run global hooks before build - before.Pipe{}, // snapshot version handling snapshot.Pipe{}, + // run global hooks before build + before.Pipe{}, // ensure ./dist is clean dist.Pipe{}, // setup gomod-related stuff