diff --git a/internal/pipe/chocolatey/chocolatey.go b/internal/pipe/chocolatey/chocolatey.go index 131c8131f..f25497924 100644 --- a/internal/pipe/chocolatey/chocolatey.go +++ b/internal/pipe/chocolatey/chocolatey.go @@ -12,7 +12,6 @@ import ( "github.com/caarlos0/log" "github.com/goreleaser/goreleaser/internal/artifact" "github.com/goreleaser/goreleaser/internal/client" - "github.com/goreleaser/goreleaser/internal/pipe" "github.com/goreleaser/goreleaser/internal/tmpl" "github.com/goreleaser/goreleaser/pkg/config" "github.com/goreleaser/goreleaser/pkg/context" @@ -78,10 +77,6 @@ func (Pipe) Run(ctx *context.Context) error { // Publish packages. func (Pipe) Publish(ctx *context.Context) error { - if ctx.SkipPublish { - return pipe.ErrSkipPublishEnabled - } - artifacts := ctx.Artifacts.Filter( artifact.ByType(artifact.PublishableChocolatey), ).List() diff --git a/internal/pipe/chocolatey/chocolatey_test.go b/internal/pipe/chocolatey/chocolatey_test.go index e9f952a03..d0a2bf874 100644 --- a/internal/pipe/chocolatey/chocolatey_test.go +++ b/internal/pipe/chocolatey/chocolatey_test.go @@ -220,11 +220,6 @@ func TestPublish(t *testing.T) { skip bool err string }{ - { - name: "skip publish", - skip: true, - err: "publishing is disabled", - }, { name: "no artifacts", }, @@ -287,7 +282,7 @@ func TestPublish(t *testing.T) { cmd = stdCmd{} }) - ctx := testctx.New(func(ctx *context.Context) { ctx.SkipPublish = tt.skip }) + ctx := testctx.New() for _, artifact := range tt.artifacts { ctx.Artifacts.Add(&artifact) }