mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
feat: improve deprecations
pending https://github.com/invopop/jsonschema/pull/79 the jsonschema should also have the correct deprecated markings Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
b56dcbf4c1
commit
73b322579e
@ -217,13 +217,13 @@ type AUR struct {
|
||||
// Homebrew contains the brew section.
|
||||
type Homebrew struct {
|
||||
Name string `yaml:"name,omitempty" json:"name,omitempty"`
|
||||
Tap RepoRef `yaml:"tap,omitempty" json:"tap,omitempty"` // Deprecated
|
||||
Tap RepoRef `yaml:"tap,omitempty" json:"tap,omitempty" jsonschema:"deprecated=true,description=use repository instead"` // Deprecated
|
||||
Repository RepoRef `yaml:"repository,omitempty" json:"repository,omitempty"`
|
||||
CommitAuthor CommitAuthor `yaml:"commit_author,omitempty" json:"commit_author,omitempty"`
|
||||
CommitMessageTemplate string `yaml:"commit_msg_template,omitempty" json:"commit_msg_template,omitempty"`
|
||||
Folder string `yaml:"folder,omitempty" json:"folder,omitempty"`
|
||||
Caveats string `yaml:"caveats,omitempty" json:"caveats,omitempty"`
|
||||
Plist string `yaml:"plist,omitempty" json:"plist,omitempty"` // Deprecated
|
||||
Plist string `yaml:"plist,omitempty" json:"plist,omitempty" jsonschema:"deprecated=true,description=use service instead"` // Deprecated
|
||||
Install string `yaml:"install,omitempty" json:"install,omitempty"`
|
||||
PostInstall string `yaml:"post_install,omitempty" json:"post_install,omitempty"`
|
||||
Dependencies []HomebrewDependency `yaml:"dependencies,omitempty" json:"dependencies,omitempty"`
|
||||
@ -264,7 +264,7 @@ type Nix struct {
|
||||
type Krew struct {
|
||||
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
|
||||
Name string `yaml:"name,omitempty" json:"name,omitempty"`
|
||||
Index RepoRef `yaml:"index,omitempty" json:"index,omitempty"` // Deprecated
|
||||
Index RepoRef `yaml:"index,omitempty" json:"index,omitempty" jsonschema:"deprecated=true,description=use repository instead"` // Deprecated
|
||||
Repository RepoRef `yaml:"repository,omitempty" json:"repository,omitempty"`
|
||||
CommitAuthor CommitAuthor `yaml:"commit_author,omitempty" json:"commit_author,omitempty"`
|
||||
CommitMessageTemplate string `yaml:"commit_msg_template,omitempty" json:"commit_msg_template,omitempty"`
|
||||
@ -304,7 +304,7 @@ type Ko struct {
|
||||
type Scoop struct {
|
||||
Name string `yaml:"name,omitempty" json:"name,omitempty"`
|
||||
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
|
||||
Bucket RepoRef `yaml:"bucket,omitempty" json:"bucket,omitempty"` // Deprecated
|
||||
Bucket RepoRef `yaml:"bucket,omitempty" json:"bucket,omitempty" jsonschema:"deprecated=true,description=use repository instead"` // Deprecated
|
||||
Repository RepoRef `yaml:"repository,omitempty" json:"repository,omitempty"`
|
||||
Folder string `yaml:"folder,omitempty" json:"folder,omitempty"`
|
||||
CommitAuthor CommitAuthor `yaml:"commit_author,omitempty" json:"commit_author,omitempty"`
|
||||
@ -576,7 +576,7 @@ func (f File) JSONSchema() *jsonschema.Schema {
|
||||
|
||||
// UniversalBinary setups macos universal binaries.
|
||||
type UniversalBinary struct {
|
||||
ID string `yaml:"id,omitempty" json:"id,omitempty"` // Deprecated
|
||||
ID string `yaml:"id,omitempty" json:"id,omitempty"`
|
||||
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
|
||||
NameTemplate string `yaml:"name_template,omitempty" json:"name_template,omitempty"`
|
||||
Replace bool `yaml:"replace,omitempty" json:"replace,omitempty"`
|
||||
@ -607,7 +607,7 @@ type Archive struct {
|
||||
FormatOverrides []FormatOverride `yaml:"format_overrides,omitempty" json:"format_overrides,omitempty"`
|
||||
WrapInDirectory string `yaml:"wrap_in_directory,omitempty" json:"wrap_in_directory,omitempty" jsonschema:"oneof_type=string;boolean"`
|
||||
StripParentBinaryFolder bool `yaml:"strip_parent_binary_folder,omitempty" json:"strip_parent_binary_folder,omitempty"`
|
||||
RLCP string `yaml:"rlcp,omitempty" json:"rlcp,omitempty" jsonschema:"oneof_type=string;boolean"` // Deprecated
|
||||
RLCP string `yaml:"rlcp,omitempty" json:"rlcp,omitempty" jsonschema:"oneof_type=string;boolean,deprecated=true,description=you can now remove this"` // Deprecated
|
||||
Files []File `yaml:"files,omitempty" json:"files,omitempty"`
|
||||
Meta bool `yaml:"meta,omitempty" json:"meta,omitempty"`
|
||||
AllowDifferentBinaryCount bool `yaml:"allow_different_binary_count,omitempty" json:"allow_different_binary_count,omitempty"`
|
||||
@ -1025,7 +1025,7 @@ type Source struct {
|
||||
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
|
||||
PrefixTemplate string `yaml:"prefix_template,omitempty" json:"prefix_template,omitempty"`
|
||||
Files []File `yaml:"files,omitempty" json:"files,omitempty"`
|
||||
RLCP string `yaml:"rlcp,omitempty" json:"rlcp,omitempty" jsonschema:"oneof_type=string;boolean"` // Deprecated
|
||||
RLCP string `yaml:"rlcp,omitempty" json:"rlcp,omitempty" jsonschema:"oneof_type=string;boolean,deprecated=true,description=you can now remove this"` // Deprecated
|
||||
}
|
||||
|
||||
// Project includes all project configuration.
|
||||
@ -1039,7 +1039,7 @@ type Project struct {
|
||||
AURs []AUR `yaml:"aurs,omitempty" json:"aurs,omitempty"`
|
||||
Krews []Krew `yaml:"krews,omitempty" json:"krews,omitempty"`
|
||||
Kos []Ko `yaml:"kos,omitempty" json:"kos,omitempty"`
|
||||
Scoop Scoop `yaml:"scoop,omitempty" json:"scoop,omitempty"` // Deprecated
|
||||
Scoop Scoop `yaml:"scoop,omitempty" json:"scoop,omitempty" jsonschema:"deprecated=true,description=use scoops insteads"` // Deprecated
|
||||
Scoops []Scoop `yaml:"scoops,omitempty" json:"scoops,omitempty"`
|
||||
Builds []Build `yaml:"builds,omitempty" json:"builds,omitempty"`
|
||||
Archives []Archive `yaml:"archives,omitempty" json:"archives,omitempty"`
|
||||
@ -1070,8 +1070,7 @@ type Project struct {
|
||||
UniversalBinaries []UniversalBinary `yaml:"universal_binaries,omitempty" json:"universal_binaries,omitempty"`
|
||||
UPXs []UPX `yaml:"upx,omitempty" json:"upx,omitempty"`
|
||||
|
||||
// this is a hack ¯\_(ツ)_/¯
|
||||
SingleBuild Build `yaml:"build,omitempty" json:"build,omitempty" jsonschema_description:"deprecated: use builds instead"` // Deprecated
|
||||
SingleBuild Build `yaml:"build,omitempty" json:"build,omitempty" jsonschema:"deprecated=true,description=use builds instead"` // Deprecated
|
||||
|
||||
// force the SCM token to use when multiple are set
|
||||
ForceToken string `yaml:"force_token,omitempty" json:"force_token,omitempty" jsonschema:"enum=github,enum=gitlab,enum=gitea,enum=,default="`
|
||||
|
Loading…
x
Reference in New Issue
Block a user