mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-07 15:00:12 +02:00
feat(blob): deprecate disableSSL
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
1d9f15ddf6
commit
50402270ab
@ -4,6 +4,7 @@ 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"
|
||||
@ -28,6 +29,10 @@ func (Pipe) Default(ctx *context.Context) error {
|
||||
if blob.Folder == "" {
|
||||
blob.Folder = "{{ .ProjectName }}/{{ .Tag }}"
|
||||
}
|
||||
if blob.OldDisableSSL {
|
||||
deprecate.Notice(ctx, "blobs.disableSSL")
|
||||
blob.DisableSSL = true
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -1093,16 +1093,20 @@ type Before struct {
|
||||
|
||||
// Blob contains config for GO CDK blob.
|
||||
type Blob struct {
|
||||
Bucket string `yaml:"bucket,omitempty" json:"bucket,omitempty"`
|
||||
Provider string `yaml:"provider,omitempty" json:"provider,omitempty"`
|
||||
Region string `yaml:"region,omitempty" json:"region,omitempty"`
|
||||
DisableSSL bool `yaml:"disableSSL,omitempty" json:"disableSSL,omitempty"` // nolint:tagliatelle // TODO(caarlos0): rename to disable_ssl
|
||||
Folder string `yaml:"folder,omitempty" json:"folder,omitempty"`
|
||||
KMSKey string `yaml:"kmskey,omitempty" json:"kmskey,omitempty"`
|
||||
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
|
||||
Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty"` // used for minio for example
|
||||
ExtraFiles []ExtraFile `yaml:"extra_files,omitempty" json:"extra_files,omitempty"`
|
||||
Disable string `yaml:"disable,omitempty" json:"disable,omitempty" jsonschema:"oneof_type=string;boolean"`
|
||||
Bucket string `yaml:"bucket,omitempty" json:"bucket,omitempty"`
|
||||
Provider string `yaml:"provider,omitempty" json:"provider,omitempty"`
|
||||
Region string `yaml:"region,omitempty" json:"region,omitempty"`
|
||||
DisableSSL bool `yaml:"disable_ssl,omitempty" json:"disable_ssl,omitempty"`
|
||||
Folder string `yaml:"folder,omitempty" json:"folder,omitempty"`
|
||||
KMSKey string `yaml:"kmskey,omitempty" json:"kmskey,omitempty"`
|
||||
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
|
||||
Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty"` // used for minio for example
|
||||
ExtraFiles []ExtraFile `yaml:"extra_files,omitempty" json:"extra_files,omitempty"`
|
||||
Disable string `yaml:"disable,omitempty" json:"disable,omitempty" jsonschema:"oneof_type=string;boolean"`
|
||||
ForceS3StylePath bool `yaml:"force_s3_style_path,omitempty" json:"force_s3_style_path,omitempty"`
|
||||
|
||||
// Deprecated: use disable_ssl instead
|
||||
OldDisableSSL bool `yaml:"disableSSL,omitempty" json:"disableSSL,omitempty" jsonschema:"deprecated=true,description=use disable_ssl instead"` // nolint:tagliatelle
|
||||
}
|
||||
|
||||
// Upload configuration.
|
||||
|
@ -37,6 +37,26 @@ Description.
|
||||
|
||||
-->
|
||||
|
||||
### blobs.disableSSL
|
||||
|
||||
> since 2024-01-07
|
||||
|
||||
Changed to `disable_ssl` to conform with all other options.
|
||||
|
||||
=== "Before"
|
||||
|
||||
``` yaml
|
||||
blobs:
|
||||
- disableSSL: true
|
||||
```
|
||||
|
||||
=== "After"
|
||||
|
||||
``` yaml
|
||||
blobs:
|
||||
- disable_ssl: true
|
||||
```
|
||||
|
||||
### `--skip`
|
||||
|
||||
> since 2023-09-14
|
||||
|
Loading…
x
Reference in New Issue
Block a user