Skip to content

Commit

Permalink
chore: add debug log to scoop
Browse files Browse the repository at this point in the history
copied from #1464

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Apr 28, 2020
1 parent 9bd0033 commit eedfc65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/pipe/scoop/scoop.go
Expand Up @@ -9,6 +9,7 @@ import (
"path/filepath"
"strings"

"github.com/apex/log"
"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/client"
"github.com/goreleaser/goreleaser/internal/pipe"
Expand Down Expand Up @@ -179,6 +180,13 @@ func buildManifest(ctx *context.Context, artifacts []*artifact.Artifact) (bytes.
return result, err
}

log.WithFields(log.Fields{
"artifactExtras": artifact.Extra,
"fromURLTemplate": ctx.Config.Scoop.URLTemplate,
"templatedBrewURL": url,
"sum": sum,
}).Debug("scoop url templating")

manifest.Architecture[arch] = Resource{
URL: url,
Bin: binaries(artifact),
Expand Down

0 comments on commit eedfc65

Please sign in to comment.