Skip to content

Commit 2d5b2fd

Browse files
committed
feat!: module v2
1 parent 737d1c0 commit 2d5b2fd

File tree

2 files changed

+1
-49
lines changed

2 files changed

+1
-49
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/goreleaser/goreleaser-pro
1+
module github.com/goreleaser/goreleaser-pro/v2
22

33
go 1.18

pkg/config/config.go

-48
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,6 @@ type Homebrew struct {
240240
// Pro-only
241241
AlternativeNames []string `yaml:"alternative_names,omitempty" json:"alternative_names,omitempty"`
242242
App string `yaml:"app,omitempty" json:"app,omitempty"`
243-
244-
// Deprecated: use Repository instead.
245-
Tap RepoRef `yaml:"tap,omitempty" json:"tap,omitempty" jsonschema:"deprecated=true,description=use repository instead"`
246-
247-
// Deprecated: use Service instead.
248-
Plist string `yaml:"plist,omitempty" json:"plist,omitempty" jsonschema:"deprecated=true,description=use service instead"`
249-
250-
// Deprecated: use Directory instead.
251-
Folder string `yaml:"folder,omitempty" json:"folder,omitempty" jsonschema:"deprecated=true"`
252243
}
253244

254245
type Nix struct {
@@ -347,9 +338,6 @@ type Krew struct {
347338
Goarm string `yaml:"goarm,omitempty" json:"goarm,omitempty" jsonschema:"oneof_type=string;integer"`
348339
Goamd64 string `yaml:"goamd64,omitempty" json:"goamd64,omitempty"`
349340
SkipUpload string `yaml:"skip_upload,omitempty" json:"skip_upload,omitempty" jsonschema:"oneof_type=string;boolean"`
350-
351-
// Deprecated: use Repository instead.
352-
Index RepoRef `yaml:"index,omitempty" json:"index,omitempty" jsonschema:"deprecated=true,description=use repository instead"`
353341
}
354342

355343
// Ko contains the ko section
@@ -396,12 +384,6 @@ type Scoop struct {
396384

397385
// pro-only
398386
Use string `yaml:"use,omitempty" json:"use,omitempty" jsonschema:"enum=archive,enum=msi,default=archive"`
399-
400-
// Deprecated: use Repository instead.
401-
Bucket RepoRef `yaml:"bucket,omitempty" json:"bucket,omitempty" jsonschema:"deprecated=true,description=use repository instead"`
402-
403-
// Deprecated: use Directory instead.
404-
Folder string `yaml:"folder,omitempty" json:"folder,omitempty" jsonschema:"deprecated=true"`
405387
}
406388

407389
// CommitAuthor is the author of a Git commit.
@@ -659,12 +641,6 @@ type Archive struct {
659641
// pro only
660642
Hooks ArchiveHooks `yaml:"hooks,omitempty" json:"hooks,omitempty"`
661643
TemplatedFiles []TemplatedFile `yaml:"templated_files,omitempty" json:"templated_files,omitempty"`
662-
663-
// Deprecated: don't need to set this anymore.
664-
RLCP string `yaml:"rlcp,omitempty" json:"rlcp,omitempty" jsonschema:"oneof_type=string;boolean,deprecated=true,description=you can now remove this"`
665-
666-
// Deprecated: use StripBinaryDirectory instead.
667-
StripParentBinaryFolder bool `yaml:"strip_parent_binary_folder,omitempty" json:"strip_parent_binary_folder,omitempty" jsonschema:"deprecated=true"`
668644
}
669645

670646
type ReleaseNotesMode string
@@ -1099,9 +1075,6 @@ type Changelog struct {
10991075
Divider string `yaml:"divider,omitempty" json:"divider,omitempty"`
11001076
Abbrev int `yaml:"abbrev,omitempty" json:"abbrev,omitempty"`
11011077
Paths []string `yaml:"paths,omitempty" json:"paths,omitempty"`
1102-
1103-
// Deprecated: use disable instead.
1104-
Skip string `yaml:"skip,omitempty" json:"skip,omitempty" jsonschema:"oneof_type=string;boolean,deprecated=true,description=use disable instead"`
11051078
}
11061079

11071080
// ChangelogGroup holds the grouping criteria for the changelog.
@@ -1179,15 +1152,6 @@ type Blob struct {
11791152
ContentDisposition string `yaml:"content_disposition,omitempty" json:"content_disposition,omitempty"`
11801153
IncludeMeta bool `yaml:"include_meta,omitempty" json:"include_meta,omitempty"`
11811154

1182-
// Deprecated: use disable_ssl instead
1183-
OldDisableSSL bool `yaml:"disableSSL,omitempty" json:"disableSSL,omitempty" jsonschema:"deprecated=true,description=use disable_ssl instead"` // nolint:tagliatelle
1184-
1185-
// Deprecated: use kms_key instead
1186-
OldKMSKey string `yaml:"kmskey,omitempty" json:"kmskey,omitempty" jsonschema:"deprecated=true,description=use kms_key instead"`
1187-
1188-
// Deprecated: use Directory instead.
1189-
Folder string `yaml:"folder,omitempty" json:"folder,omitempty" jsonschema:"deprecated=true"`
1190-
11911155
// pro-only
11921156
TemplatedExtraFiles []TemplatedExtraFile `yaml:"templated_extra_files,omitempty" json:"templated_extra_files,omitempty"`
11931157
}
@@ -1242,9 +1206,6 @@ type Source struct {
12421206

12431207
// pro only
12441208
TemplatedFiles []TemplatedFile `yaml:"templated_files,omitempty" json:"templated_files,omitempty"`
1245-
1246-
// Deprecated: don't need to set this anymore.
1247-
RLCP string `yaml:"rlcp,omitempty" json:"rlcp,omitempty" jsonschema:"oneof_type=string;boolean,deprecated=true,description=you can now remove this"`
12481209
}
12491210

12501211
// Project includes all project configuration.
@@ -1317,12 +1278,6 @@ type Project struct {
13171278
Nightly Nightly `yaml:"nightly,omitempty" json:"nightly,omitempty"`
13181279
Furies []Fury `yaml:"furies,omitempty" json:"furies,omitempty"`
13191280
DockerHubs []DockerHub `yaml:"dockerhub,omitempty" json:"dockerhub,omitempty"`
1320-
1321-
// Deprecated: use Scoops instead.
1322-
Scoop Scoop `yaml:"scoop,omitempty" json:"scoop,omitempty" jsonschema:"deprecated=true,description=use scoops instead"`
1323-
1324-
// Deprecated: use Builds instead.
1325-
SingleBuild Build `yaml:"build,omitempty" json:"build,omitempty" jsonschema:"deprecated=true,description=use builds instead"`
13261281
}
13271282

13281283
type TemplateFile struct {
@@ -1395,9 +1350,6 @@ type Fury struct {
13951350
Formats []string `yaml:"formats,omitempty" json:"formats,omitempty"`
13961351
SecretName string `yaml:"secret_name,omitempty" json:"secret_name,omitempty"`
13971352
Disable string `yaml:"disable,omitempty" json:"disable,omitempty"`
1398-
1399-
// Deprecated
1400-
Skip string `yaml:"skip,omitempty" json:"skip,omitempty" jsonschema:"oneof_type=string;boolean,deprecated=true,description=use disable instead"`
14011353
}
14021354

14031355
type Mastodon struct {

0 commit comments

Comments
 (0)