1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00
This commit is contained in:
Carlos Alexandro Becker
2017-06-22 00:09:14 -03:00
parent c80fc0714d
commit 1e9e82d926
15 changed files with 54 additions and 60 deletions

View File

@ -5,13 +5,12 @@ package git
import (
"bytes"
"fmt"
"log"
"regexp"
"strings"
"text/template"
"time"
"text/template"
"github.com/apex/log"
"github.com/goreleaser/goreleaser/context"
)
@ -74,7 +73,7 @@ func (Pipe) Run(ctx *context.Context) (err error) {
return
}
if !ctx.Validate {
log.Println("Skipped validations because --skip-validate is set")
log.Warn("Skipped validations because --skip-validate is set")
return nil
}
return validate(ctx, commit, tag)
@ -170,7 +169,7 @@ func gitLog(refs ...string) (string, error) {
func getInfo() (tag, commit string, err error) {
tag, err = cleanGit("describe", "--tags", "--abbrev=0")
if err != nil {
log.Printf("Failed to retrieve current tag: %s", err.Error())
log.WithError(err).Info("Failed to retrieve current tag")
}
commit, err = cleanGit("show", "--format='%H'", "HEAD")
return