Skip to content

Commit

Permalink
Move build to Go 1.21 (#4724)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?
- Move to next Go version per maintenance policy (see #4653)

## Description of the changes
Ran the script 
```shell
$ ./scripts/check-go-version.sh -u
go.mod                                             Go version: 1.20
docker/Makefile                                    Go version: 1.20 *** => 1.21 ***
.github/workflows/fossa.yml                        Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-release.yml                   Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-unit-tests.yml                Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-docker-build.yml              Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-build-binaries.yml            Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-crossdock.yml                 Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-elasticsearch.yml             Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-grpc-badger.yml               Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-hotrod.yml                    Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-protogen-tests.yml            Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-all-in-one-build.yml          Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-cassandra.yml                 Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-opensearch.yml                Go version: 1.20 *** => 1.21 ***
.github/workflows/ci-kafka.yml                     Go version: 1.20 *** => 1.21 ***
.golangci.yml                                      Go version: 1.20
15 file(s) updated.
```

Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Sep 5, 2023
1 parent fb8eb7d commit f8c1523
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-all-in-one-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Setup Node.js version
uses: ./.github/actions/setup-node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Setup Node.js version
uses: ./.github/actions/setup-node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Run cassandra integration tests
run: bash scripts/cassandra-integration-test.sh ${{ matrix.version.image }} ${{ matrix.version.schema }}
2 changes: 1 addition & 1 deletion .github/workflows/ci-crossdock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Export BRANCH variable
uses: ./.github/actions/setup-branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Setup Node.js version
uses: ./.github/actions/setup-node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Install tools
run: make install-ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-grpc-badger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Run Badger storage integration tests
run: make badger-storage-integration-test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-hotrod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Export BRANCH variable
uses: ./.github/actions/setup-branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Run kafka integration tests
run: bash scripts/kafka-integration-test.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Install tools
run: make install-ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-protogen-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Run protogen validation
run: make proto && git diff --name-status --exit-code
2 changes: 1 addition & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Install tools
run: make install-ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Add GOPATH
run: |
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION := 1.0.0
ROOT_IMAGE ?= alpine:3.16
CERT_IMAGE := $(ROOT_IMAGE)
GOLANG_IMAGE := golang:1.20-alpine
GOLANG_IMAGE := golang:1.21-alpine

DOCKER_REGISTRY ?= localhost:5000
BASE_IMAGE ?= $(DOCKER_REGISTRY)/baseimg_alpine:latest
Expand Down

0 comments on commit f8c1523

Please sign in to comment.