You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-15 01:34:21 +02:00
feat!: v2 (#4806)
BREAKING CHANGE removed all deprecated options, config file should now have a `version: 2` bit  --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3e40af256c
commit
4fa8df6413
@ -4,7 +4,6 @@ package blob
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/goreleaser/goreleaser/internal/deprecate"
|
||||
"github.com/goreleaser/goreleaser/internal/pipe"
|
||||
"github.com/goreleaser/goreleaser/internal/semerrgroup"
|
||||
"github.com/goreleaser/goreleaser/internal/tmpl"
|
||||
@ -22,14 +21,9 @@ func (Pipe) Skip(ctx *context.Context) bool { return len(ctx.Config.Blobs) == 0
|
||||
func (Pipe) Default(ctx *context.Context) error {
|
||||
for i := range ctx.Config.Blobs {
|
||||
blob := &ctx.Config.Blobs[i]
|
||||
|
||||
if blob.Bucket == "" || blob.Provider == "" {
|
||||
return fmt.Errorf("bucket or provider cannot be empty")
|
||||
}
|
||||
if blob.Folder != "" {
|
||||
deprecate.Notice(ctx, "blobs.folder")
|
||||
blob.Directory = blob.Folder
|
||||
}
|
||||
if blob.Directory == "" {
|
||||
blob.Directory = "{{ .ProjectName }}/{{ .Tag }}"
|
||||
}
|
||||
@ -39,15 +33,6 @@ func (Pipe) Default(ctx *context.Context) error {
|
||||
} else if blob.ContentDisposition == "-" {
|
||||
blob.ContentDisposition = ""
|
||||
}
|
||||
|
||||
if blob.OldDisableSSL {
|
||||
deprecate.Notice(ctx, "blobs.disableSSL")
|
||||
blob.DisableSSL = true
|
||||
}
|
||||
if blob.OldKMSKey != "" {
|
||||
deprecate.Notice(ctx, "blobs.kmskey")
|
||||
blob.KMSKey = blob.OldKMSKey
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user