mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-16 03:52:12 +02:00
feat: use go 1.22 (#4614)
- use go 1.22 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
4b57e61514
commit
e43604f4a0
@ -1,5 +1,5 @@
|
|||||||
run:
|
run:
|
||||||
go: "1.21"
|
go: "1.22"
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
|
@ -10,7 +10,7 @@ By participating in this project, you agree to abide our
|
|||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
- [Task](https://taskfile.dev/installation)
|
- [Task](https://taskfile.dev/installation)
|
||||||
- [Go 1.21+](https://go.dev/doc/install)
|
- [Go 1.22+](https://go.dev/doc/install)
|
||||||
|
|
||||||
Other things you might need to run the tests:
|
Other things you might need to run the tests:
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ func goModInit(tb testing.TB) {
|
|||||||
tb.Helper()
|
tb.Helper()
|
||||||
createFile(tb, "go.mod", `module foo
|
createFile(tb, "go.mod", `module foo
|
||||||
|
|
||||||
go 1.21
|
go 1.22
|
||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ func requireGoMod(tb testing.TB) {
|
|||||||
require.NoError(tb, err)
|
require.NoError(tb, err)
|
||||||
require.Contains(tb, string(mod), `module foo
|
require.Contains(tb, string(mod), `module foo
|
||||||
|
|
||||||
go 1.21`)
|
go 1.22`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func fakeGoModAndSum(tb testing.TB, module string) {
|
func fakeGoModAndSum(tb testing.TB, module string) {
|
||||||
|
2
internal/pipe/ko/testdata/app/go.mod
vendored
2
internal/pipe/ko/testdata/app/go.mod
vendored
@ -1,3 +1,3 @@
|
|||||||
module testapp
|
module testapp
|
||||||
|
|
||||||
go 1.21
|
go 1.22
|
||||||
|
@ -180,7 +180,7 @@ Once you do that, you can install the packages.
|
|||||||
go install github.com/goreleaser/goreleaser@latest
|
go install github.com/goreleaser/goreleaser@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Requires Go 1.21.
|
Requires Go 1.22.
|
||||||
|
|
||||||
### bash script
|
### bash script
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user