mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
logs update
This commit is contained in:
parent
7a955321c4
commit
295c7356f1
@ -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
|
||||
|
@ -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")
|
||||
|
@ -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)...)
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user