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

chore: add debug log to scoop

copied from #1464

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-04-27 21:51:05 -03:00
parent 9bd0033c09
commit eedfc6525d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -9,6 +9,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/apex/log"
"github.com/goreleaser/goreleaser/internal/artifact" "github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/client" "github.com/goreleaser/goreleaser/internal/client"
"github.com/goreleaser/goreleaser/internal/pipe" "github.com/goreleaser/goreleaser/internal/pipe"
@ -179,6 +180,13 @@ func buildManifest(ctx *context.Context, artifacts []*artifact.Artifact) (bytes.
return result, err 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{ manifest.Architecture[arch] = Resource{
URL: url, URL: url,
Bin: binaries(artifact), Bin: binaries(artifact),