From 5d7631f713fc339422bdd5232e2e45feb2d23b50 Mon Sep 17 00:00:00 2001 From: Brian Strauch Date: Sun, 9 Jun 2024 15:56:06 -0700 Subject: [PATCH] fix(blobs): do not upload artifacts if ids is set to empty (#4921) Closes https://github.com/goreleaser/goreleaser/issues/4920 ... ... --- internal/pipe/blob/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pipe/blob/upload.go b/internal/pipe/blob/upload.go index d1390a399..07b6bfb5d 100644 --- a/internal/pipe/blob/upload.go +++ b/internal/pipe/blob/upload.go @@ -111,7 +111,7 @@ func doUpload(ctx *context.Context, conf config.Blob) error { } filter := artifact.Or(byTypes...) - if len(conf.IDs) > 0 { + if conf.IDs != nil { filter = artifact.And(filter, artifact.ByIDs(conf.IDs...)) }