Skip to content

Commit

Permalink
build: use go1.20 (#3757)
Browse files Browse the repository at this point in the history
update everything to go 1.20

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
caarlos0 and dependabot[bot] committed Feb 5, 2023
1 parent 9b7603a commit 8191475
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
uses: caarlos0/meta/.github/workflows/govulncheck.yml@main
with:
cache: true
go-version: '>=1.19.5'
go-version: '>=1.20.0'
semgrep:
uses: caarlos0/meta/.github/workflows/semgrep.yml@main
ruleguard:
uses: caarlos0/meta/.github/workflows/ruleguard.yml@main
with:
cache: true
go-version: '>=1.19.4'
go-version: '>=1.20.0'
args: '-disable largeloopcopy'
test:
runs-on: ubuntu-latest
Expand All @@ -52,7 +52,7 @@ jobs:
mkdir -p $HOME/.cache/snapcraft/stage-packages
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.4'
go-version: '>=1.20.0'
cache: true
- uses: sigstore/cosign-installer@v2.8.1
- uses: anchore/sbom-action/download-syft@v0.13.3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
cache: true
- uses: github/codeql-action/init@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2
- uses: github/codeql-action/autobuild@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
- run: task docs:build
- uses: wjdp/htmltest-action@09118714cd26bef56bd3d0819e4f9b1dce6f60a9 # master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
cache: true
- run: go run . generate-fig-spec >goreleaser.ts
- uses: withfig/push-to-fig-autocomplete-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
cache: true
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
- run: task docs:generate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: golangci-lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
mkdir -p $HOME/.cache/snapcraft/stage-packages
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
cache: true
- uses: actions/cache@627f0f41f6904a5b1efbaed9f96d9eb58e92e920 # v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
go: 1.19
go: 1.20
linters:
enable:
- thelper
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ By participating in this project, you agree to abide our
Prerequisites:

- [Task](https://taskfile.dev/#/installation)
- [Go 1.19+](https://golang.org/doc/install)
- [Go 1.20+](https://golang.org/doc/install)

Other things you might need to run the tests:

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19.5-alpine@sha256:2381c1e5f8350a901597d633b2e517775eeac7a6682be39225a93b22cfd0f8bb
FROM golang:1.20.0-alpine@sha256:1e2917143ce7e7bf8d1add2ac5c5fa3d358b2b5ddaae2bd6f54169ce68530ef0

RUN apk add --no-cache bash \
curl \
Expand Down
2 changes: 1 addition & 1 deletion cmd/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func goModInit(tb testing.TB) {
tb.Helper()
createFile(tb, "go.mod", `module foo
go 1.19
go 1.20
`)
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/goreleaser/goreleaser

go 1.19
go 1.20

require (
code.gitea.io/sdk/gitea v0.15.1
Expand Down
2 changes: 1 addition & 1 deletion internal/pipe/gomod/gomod_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func requireGoMod(tb testing.TB) {
require.NoError(tb, err)
require.Contains(tb, string(mod), `module foo
go 1.19
go 1.20
`)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/pipe/ko/testdata/app/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testapp

go 1.19
go 1.20
2 changes: 1 addition & 1 deletion internal/pipe/sign/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
)

func TestMain(m *testing.M) {
rand.Seed(time.Now().UnixNano())
rand := rand.New(rand.NewSource(time.Now().UnixNano()))
keyring = fmt.Sprintf("/tmp/gorel_gpg_test.%d", rand.Int())
fmt.Println("copying", originKeyring, "to", keyring)
if err := exec.Command("cp", "-Rf", originKeyring, keyring).Run(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion www/docs/ci/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: '>=1.19.5'
go-version: '>=1.20.0'
cache: true
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
Expand Down
2 changes: 1 addition & 1 deletion www/docs/ci/azurepipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ trigger:
- refs/tags/*

variables:
GO_VERSION: "1.19"
GO_VERSION: "1.20"

pool:
vmImage: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion www/docs/ci/circle.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ workflows:
jobs:
release:
docker:
- image: cimg/go:1.19
- image: cimg/go:1.20
steps:
- checkout
- run: curl -sfL https://goreleaser.com/static/run | bash
Expand Down
2 changes: 1 addition & 1 deletion www/docs/ci/codefresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
BuildMyApp:
title: Compiling go code
stage: build
image: 'golang:1.19'
image: 'golang:1.20'
commands:
- go build
ReleaseMyApp:
Expand Down
2 changes: 1 addition & 1 deletion www/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ By participating in this project, you agree to abide our
Prerequisites:

- [Task](https://taskfile.dev/#/installation)
- [Go 1.19+](https://golang.org/doc/install)
- [Go 1.20+](https://golang.org/doc/install)

Other things you might need to run the tests:

Expand Down

0 comments on commit 8191475

Please sign in to comment.