1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-31 01:53:50 +02:00

fix: skips log on goreleaser build

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2023-09-23 05:36:31 +00:00
parent 800ee694f6
commit 74eba9ee16
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -13,6 +13,7 @@ import (
"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/deprecate"
"github.com/goreleaser/goreleaser/internal/gio"
"github.com/goreleaser/goreleaser/internal/logext"
"github.com/goreleaser/goreleaser/internal/middleware/errhandler"
"github.com/goreleaser/goreleaser/internal/middleware/logging"
"github.com/goreleaser/goreleaser/internal/middleware/skip"
@ -212,6 +213,13 @@ func setupBuildContext(ctx *context.Context, options buildOpts) error {
}
}
if skips.Any(ctx, skips.Build...) {
log.Warnf(
logext.Warning("skipping %s..."),
skips.String(ctx),
)
}
return nil
}