1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-17 01:42:37 +02:00

logging the reasons why a pipe is being skipped

This commit is contained in:
Carlos Alexandro Becker
2017-04-21 11:48:00 -03:00
parent 5e6c8b2f41
commit 4aa47c5866
4 changed files with 13 additions and 3 deletions

View File

@ -4,6 +4,7 @@ package git
import (
"fmt"
"log"
"regexp"
"strings"
@ -65,6 +66,7 @@ func (Pipe) Run(ctx *context.Context) (err error) {
// removes usual `v` prefix
ctx.Version = strings.TrimPrefix(tag, "v")
if !ctx.Validate {
log.Println("Skipped validation because --skip-validate is set")
return nil
}
return validate(commit, tag, ctx.Version)