1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

fix: improve log output #845

Fixed missunderstanding
This commit is contained in:
Garcia, Julio C 2018-10-26 16:31:06 -06:00 committed by Carlos Alexandro Becker
parent 0f6d8daa05
commit 2da661bc77
3 changed files with 4 additions and 3 deletions

View File

@ -91,6 +91,7 @@ func create(ctx *context.Context, binaries []artifact.Artifact) error {
}
defer archiveFile.Close() // nolint: errcheck
var log = log.WithField("archive", archivePath)
log.Info("creating")
var a = archive.New(archiveFile)
defer a.Close() // nolint: errcheck

View File

@ -52,7 +52,7 @@ func doPublish(ctx *context.Context, c client.Client) error {
}
log.WithField("tag", ctx.Git.CurrentTag).
WithField("repo", ctx.Config.Release.GitHub.String()).
Info("release")
Info("creating or updating release")
body, err := describeBody(ctx)
if err != nil {
return err

View File

@ -133,7 +133,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
}
var file = filepath.Join(primeDir, "meta", "snap.yaml")
log.WithField("file", file).Debug("snap metadata")
log.WithField("file", file).Debug("creating snap metadata")
var metadata = &Metadata{
Version: ctx.Version,
@ -187,7 +187,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
}
var snap = filepath.Join(ctx.Config.Dist, folder+".snap")
log.WithField("snap", snap)
log.WithField("snap", snap).Info("creating")
/* #nosec */
var cmd = exec.CommandContext(ctx, "snapcraft", "pack", primeDir, "--output", snap)
if out, err = cmd.CombinedOutput(); err != nil {