From 90010f093440582333cd7b5b7adb83fc823df58d Mon Sep 17 00:00:00 2001 From: Henrique Vicente Date: Thu, 2 Nov 2023 03:22:21 +0100 Subject: [PATCH] mod: require Go 1.20 onwards --- .github/workflows/go.yml | 6 +++--- .github/workflows/lint.yml | 2 +- go.mod | 4 ++-- go.sum | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e0871d9..1d6da13 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go: [1.20.x, 1.19.x] # when updating versions, update it below too. + go: [1.21.x, 1.20.x] # when updating versions, update it below too. runs-on: ${{ matrix.os }} name: Test steps: @@ -35,11 +35,11 @@ jobs: - name: Test # TODO(henvic): Skip generating code coverage when not sending it to Coveralls to speed up testing. - continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.go != '1.20.x' }} + continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.go != '1.21.x' }} run: go test -race -covermode atomic -coverprofile=profile.cov ./... - name: Code coverage - if: ${{ matrix.os == 'ubuntu-latest' && matrix.go == '1.20.x' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.go == '1.21.x' }} uses: shogo82148/actions-goveralls@v1 with: path-to-profile: profile.cov diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d44aed1..1abacd5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: "1.20.x" + go-version: "1.21.x" - name: Check out code uses: actions/checkout@v2 diff --git a/go.mod b/go.mod index 21e4899..cfcf80a 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/henvic/httpretty -go 1.16 +go 1.20 -require golang.org/x/tools v0.1.10 +require golang.org/x/tools v0.14.0 diff --git a/go.sum b/go.sum index c3c57da..abb29e5 100644 --- a/go.sum +++ b/go.sum @@ -21,6 +21,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=