Skip to content

Commit b265986

Browse files
authored
Update Go to v1.21.0 (redhat-best-practices-for-k8s#1344)
1 parent 256f082 commit b265986

File tree

9 files changed

+57
-17
lines changed

9 files changed

+57
-17
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ runs:
1111
echo '{ "auths": {} }' >> ${PFLT_DOCKERCONFIG}
1212
shell: bash
1313

14-
- name: Set up Go 1.20
14+
- name: Set up Go 1.21
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: 1.20.7
17+
go-version: 1.21.0
1818

1919
- name: Disable default go problem matcher
2020
run: echo "::remove-matcher owner=go::"

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
- name: Checkout repository
4343
uses: actions/checkout@v3
4444

45-
- name: Set up Go 1.20
45+
- name: Set up Go 1.21
4646
uses: actions/setup-go@v4
4747
with:
48-
go-version: 1.20.7
48+
go-version: 1.21.0
4949

5050
- name: Install ginkgo
5151
run: make install-tools

.github/workflows/merge.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414

15-
- name: Set up Go 1.20
15+
- name: Set up Go 1.21
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.20.7
18+
go-version: 1.21.0
1919

2020
- name: Check out code into the Go module directory
2121
uses: actions/checkout@v3

.github/workflows/pre-main.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
SHELL: /bin/bash
4242

4343
steps:
44-
- name: Set up Go 1.20
44+
- name: Set up Go 1.21
4545
uses: actions/setup-go@v4
4646
with:
47-
go-version: 1.20.7
47+
go-version: 1.21.0
4848

4949
- name: Disable default go problem matcher
5050
run: echo "::remove-matcher owner=go::"
@@ -141,10 +141,10 @@ jobs:
141141
SHELL: /bin/bash
142142

143143
steps:
144-
- name: Set up Go 1.20
144+
- name: Set up Go 1.21
145145
uses: actions/setup-go@v4
146146
with:
147-
go-version: 1.20.7
147+
go-version: 1.21.0
148148

149149
- name: Disable default go problem matcher
150150
run: echo "::remove-matcher owner=go::"
@@ -201,10 +201,10 @@ jobs:
201201
touch ${PFLT_DOCKERCONFIG}
202202
echo '{ "auths": {} }' >> ${PFLT_DOCKERCONFIG}
203203
204-
- name: Set up Go 1.20
204+
- name: Set up Go 1.21
205205
uses: actions/setup-go@v4
206206
with:
207-
go-version: 1.20.7
207+
go-version: 1.21.0
208208

209209
- name: Disable default go problem matcher
210210
run: echo "::remove-matcher owner=go::"

.github/workflows/update-rhcos-mapping.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- name: Execute `make update-rhcos-versions`
2121
run: make update-rhcos-versions
2222

23-
- name: Set up Go 1.20
23+
- name: Set up Go 1.21
2424
uses: actions/setup-go@v4
2525
with:
26-
go-version: 1.20.7
26+
go-version: 1.21.0
2727

2828
# This prevents any failures due to the updated rhcos_versions_map file from
2929
# making it into the PR phase.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN \
2222
# Install Go binary and set the PATH
2323
ENV \
2424
GO_DL_URL=https://golang.org/dl \
25-
GO_BIN_TAR=go1.20.7.linux-amd64.tar.gz \
25+
GO_BIN_TAR=go1.21.0.linux-amd64.tar.gz \
2626
GOPATH=/root/go
2727
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/${GO_BIN_TAR}
2828
RUN \

docs/test-standalone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ make install-tools
3333

3434
Dependency|Minimum Version
3535
---|---
36-
[GoLang](https://golang.org/dl/)|1.20
36+
[GoLang](https://golang.org/dl/)|1.21
3737
[golangci-lint](https://golangci-lint.run/usage/install/)|1.53.3
3838
[jq](https://stedolan.github.io/jq/)|1.6
3939
[OpenShift Client](https://mirror.openshift.com/pub/openshift-v4/clients/ocp/)|4.12

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/test-network-function/cnf-certification-test
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/Masterminds/semver/v3 v3.2.1

go.sum

Lines changed: 40 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)