Skip to content
Permalink
Browse files

chore: log

  • Loading branch information...
caarlos0 committed Oct 27, 2018
1 parent 57d0217 commit 53360bc58fd35dcabf668c337d576a646bded76f
Showing with 6 additions and 10 deletions.
  1. +6 −10 internal/pipe/nfpm/nfpm.go
@@ -6,22 +6,18 @@ import (
"path/filepath"

"github.com/apex/log"
"github.com/goreleaser/nfpm"
"github.com/imdario/mergo"
"github.com/pkg/errors"

// blank imports here because the formats implementations need register
// themselves
_ "github.com/goreleaser/nfpm/deb"
_ "github.com/goreleaser/nfpm/rpm"

"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/linux"
"github.com/goreleaser/goreleaser/internal/pipe"
"github.com/goreleaser/goreleaser/internal/semerrgroup"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/config"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/goreleaser/nfpm"
_ "github.com/goreleaser/nfpm/deb" // blank import to register the format
_ "github.com/goreleaser/nfpm/rpm" // blank import to register the format
"github.com/imdario/mergo"
"github.com/pkg/errors"
)

const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
@@ -154,7 +150,7 @@ func create(ctx *context.Context, format, arch string, binaries []artifact.Artif
}

var path = filepath.Join(ctx.Config.Dist, name+"."+format)
log.WithField("file", path)
log.WithField("file", path).Info("creating")
w, err := os.Create(path)
if err != nil {
return err

0 comments on commit 53360bc

Please sign in to comment.
You can’t perform that action at this time.