1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-30 04:50:45 +02:00

fix(blobs): do not upload artifacts if ids is set to empty (#4921)

<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

Closes https://github.com/goreleaser/goreleaser/issues/4920

<!-- Why is this change being made? -->

...

<!-- # Provide links to any relevant tickets, URLs or other resources
-->

...
This commit is contained in:
Brian Strauch 2024-06-09 15:56:06 -07:00 committed by GitHub
parent f588b07adc
commit 5d7631f713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,7 @@ func doUpload(ctx *context.Context, conf config.Blob) error {
} }
filter := artifact.Or(byTypes...) filter := artifact.Or(byTypes...)
if len(conf.IDs) > 0 { if conf.IDs != nil {
filter = artifact.And(filter, artifact.ByIDs(conf.IDs...)) filter = artifact.And(filter, artifact.ByIDs(conf.IDs...))
} }