diff --git a/.golangci.yaml b/.golangci.yaml index 23a6c72d7..8a9deb29c 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,5 +1,5 @@ run: - go: "1.20" + go: "1.21" timeout: 5m linters: enable: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6891332e3..4861ef8f6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ By participating in this project, you agree to abide our Prerequisites: - [Task](https://taskfile.dev/installation) -- [Go 1.20+](https://go.dev/doc/install) +- [Go 1.21+](https://go.dev/doc/install) Other things you might need to run the tests: diff --git a/cmd/util_test.go b/cmd/util_test.go index c4ea0d4c8..2a220a52d 100644 --- a/cmd/util_test.go +++ b/cmd/util_test.go @@ -62,7 +62,7 @@ func goModInit(tb testing.TB) { tb.Helper() createFile(tb, "go.mod", `module foo -go 1.20 +go 1.21 `) } diff --git a/go.mod b/go.mod index 7a41e1c50..91155c133 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/goreleaser/goreleaser -go 1.20 +go 1.21 require ( code.gitea.io/sdk/gitea v0.15.1 diff --git a/internal/pipe/gomod/gomod_proxy_test.go b/internal/pipe/gomod/gomod_proxy_test.go index 180f8a3be..0b93df607 100644 --- a/internal/pipe/gomod/gomod_proxy_test.go +++ b/internal/pipe/gomod/gomod_proxy_test.go @@ -205,8 +205,7 @@ func requireGoMod(tb testing.TB) { require.NoError(tb, err) require.Contains(tb, string(mod), `module foo -go 1.20 -`) +go 1.21`) } func fakeGoModAndSum(tb testing.TB, module string) { diff --git a/internal/pipe/ko/testdata/app/go.mod b/internal/pipe/ko/testdata/app/go.mod index 174022eb1..8a847c576 100644 --- a/internal/pipe/ko/testdata/app/go.mod +++ b/internal/pipe/ko/testdata/app/go.mod @@ -1,3 +1,3 @@ module testapp -go 1.20 +go 1.21 diff --git a/www/docs/contributing.md b/www/docs/contributing.md index 6891332e3..4861ef8f6 100644 --- a/www/docs/contributing.md +++ b/www/docs/contributing.md @@ -10,7 +10,7 @@ By participating in this project, you agree to abide our Prerequisites: - [Task](https://taskfile.dev/installation) -- [Go 1.20+](https://go.dev/doc/install) +- [Go 1.21+](https://go.dev/doc/install) Other things you might need to run the tests: diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index b96be66b1..e8090ee1b 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -208,17 +208,6 @@ "strip_parent_binary_folder": { "type": "boolean" }, - "rlcp": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "boolean" - } - ], - "description": "you can now remove this" - }, "files": { "items": { "$ref": "#/$defs/File" @@ -230,6 +219,17 @@ }, "allow_different_binary_count": { "type": "boolean" + }, + "rlcp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "boolean" + } + ], + "description": "you can now remove this" } }, "additionalProperties": false, @@ -1128,10 +1128,6 @@ "name": { "type": "string" }, - "tap": { - "$ref": "#/$defs/RepoRef", - "description": "use repository instead" - }, "repository": { "$ref": "#/$defs/RepoRef" }, @@ -1147,10 +1143,6 @@ "caveats": { "type": "string" }, - "plist": { - "type": "string", - "description": "use service instead" - }, "install": { "type": "string" }, @@ -1227,6 +1219,14 @@ }, "service": { "type": "string" + }, + "tap": { + "$ref": "#/$defs/RepoRef", + "description": "use repository instead" + }, + "plist": { + "type": "string", + "description": "use service instead" } }, "additionalProperties": false, @@ -1417,10 +1417,6 @@ "name": { "type": "string" }, - "index": { - "$ref": "#/$defs/RepoRef", - "description": "use repository instead" - }, "repository": { "$ref": "#/$defs/RepoRef" }, @@ -1467,6 +1463,10 @@ "type": "boolean" } ] + }, + "index": { + "$ref": "#/$defs/RepoRef", + "description": "use repository instead" } }, "additionalProperties": false, @@ -2159,10 +2159,6 @@ }, "type": "array" }, - "scoop": { - "$ref": "#/$defs/Scoop", - "description": "use scoops insteads" - }, "scoops": { "items": { "$ref": "#/$defs/Scoop" @@ -2301,10 +2297,6 @@ }, "type": "array" }, - "build": { - "$ref": "#/$defs/Build", - "description": "use builds instead" - }, "force_token": { "type": "string", "enum": [ @@ -2323,6 +2315,14 @@ }, "gitea_urls": { "$ref": "#/$defs/GiteaURLs" + }, + "scoop": { + "$ref": "#/$defs/Scoop", + "description": "use scoops instead" + }, + "build": { + "$ref": "#/$defs/Build", + "description": "use builds instead" } }, "additionalProperties": false, @@ -2371,6 +2371,16 @@ "$ref": "#/$defs/ExtraFile" }, "type": "array" + }, + "disable": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false, @@ -2652,10 +2662,6 @@ }, "type": "array" }, - "bucket": { - "$ref": "#/$defs/RepoRef", - "description": "use repository instead" - }, "repository": { "$ref": "#/$defs/RepoRef" }, @@ -2725,6 +2731,10 @@ }, "goamd64": { "type": "string" + }, + "bucket": { + "$ref": "#/$defs/RepoRef", + "description": "use repository instead" } }, "additionalProperties": false, @@ -2923,6 +2933,16 @@ "plugs": { "type": "object" }, + "disable": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "boolean" + } + ] + }, "extra_files": { "items": { "$ref": "#/$defs/SnapcraftExtraFiles"