1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

logs update

This commit is contained in:
Carlos Alexandro Becker 2017-06-23 19:47:08 -03:00
parent 7a955321c4
commit 295c7356f1
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ func create(ctx *context.Context, platform, name string) error {
func skip(ctx *context.Context, platform, name string) error {
b := name + ext.For(platform)
log.Printf("Skip archiving for binary %s", b)
log.WithField("binary", b).Info("skip archiving")
var binary = filepath.Join(ctx.Config.Dist, b)
ctx.AddArtifact(binary)
return nil

View File

@ -107,7 +107,7 @@ func doRun(ctx *context.Context, client client.Client) error {
return nil
}
if ctx.Config.Archive.Format == "binary" {
log.Println("Skipped because archive format is binary")
log.Info("skipped because archive format is binary")
return nil
}
path := filepath.Join(ctx.Config.Brew.Folder, ctx.Config.Build.Binary+".rb")

View File

@ -70,7 +70,7 @@ func build(ctx *context.Context, name string, target buildTarget) error {
if ctx.Config.Archive.Format == "binary" {
output = filepath.Join(ctx.Config.Dist, name+ext.For(target.goos))
}
log.Println("Building", output)
log.WithField("output", output).Info("building")
cmd := []string{"go", "build"}
if ctx.Config.Build.Flags != "" {
cmd = append(cmd, strings.Fields(ctx.Config.Build.Flags)...)

View File

@ -34,7 +34,7 @@ func (Pipe) Run(ctx *context.Context) error {
return nil
}
if ctx.Config.Archive.Format == "binary" {
log.Println("Skipped because archive format is binary")
log.Info("skipped because archive format is binary")
return nil
}
_, err := exec.LookPath("fpm")