Skip to content

Commit 6c45e71

Browse files
authored
Update Go to v1.23.1 (#191)
1 parent a9e12af commit 6c45e71

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/pre-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-22.04
1717

1818
steps:
19-
- name: Set up Go 1.22
19+
- name: Set up Go 1.23
2020
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
2121
with:
22-
go-version: 1.22.6
22+
go-version: 1.23.1
2323

2424
- name: Disable default go problem matcher
2525
run: echo "::remove-matcher owner=go::"

.github/workflows/preflight.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2222

23-
- name: Set up Go 1.22
23+
- name: Set up Go 1.23
2424
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
2525
with:
26-
go-version: 1.22.6
26+
go-version: 1.23.1
2727

2828
- name: Disable default go problem matcher
2929
run: echo "::remove-matcher owner=go::"

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ RUN yum install -y gcc git jq make wget
1111
ENV \
1212
GO_DL_URL=https://golang.org/dl \
1313
GOPATH=/root/go
14-
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.22.6.linux-amd64.tar.gz
15-
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.22.6.linux-arm64.tar.gz
14+
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.23.1.linux-amd64.tar.gz
15+
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.23.1.linux-arm64.tar.gz
1616

1717
# Determine the CPU architecture and download the appropriate Go binary
1818
RUN \
1919
if [ "$(uname -m)" = x86_64 ]; then \
2020
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_x86_64} --quiet \
2121
&& rm -rf /usr/local/go \
22-
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-amd64.tar.gz; \
22+
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-amd64.tar.gz; \
2323
elif [ "$(uname -m)" = aarch64 ]; then \
2424
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_aarch64} --quiet \
2525
&& rm -rf /usr/local/go \
26-
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-arm64.tar.gz; \
26+
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-arm64.tar.gz; \
2727
else \
2828
echo "CPU architecture is not supported." && exit 1; \
2929
fi

Dockerfile.local

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ RUN yum install -y gcc git jq make wget
1111
ENV \
1212
GO_DL_URL=https://golang.org/dl \
1313
GOPATH=/root/go
14-
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.22.6.linux-amd64.tar.gz
15-
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.22.6.linux-arm64.tar.gz
14+
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.23.1.linux-amd64.tar.gz
15+
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.23.1.linux-arm64.tar.gz
1616

1717
# Determine the CPU architecture and download the appropriate Go binary
1818
RUN \
1919
if [ "$(uname -m)" = x86_64 ]; then \
2020
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_x86_64} --quiet \
2121
&& rm -rf /usr/local/go \
22-
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-amd64.tar.gz; \
22+
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-amd64.tar.gz; \
2323
elif [ "$(uname -m)" = aarch64 ]; then \
2424
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_aarch64} --quiet \
2525
&& rm -rf /usr/local/go \
26-
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-arm64.tar.gz; \
26+
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-arm64.tar.gz; \
2727
else \
2828
echo "CPU architecture is not supported." && exit 1; \
2929
fi

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/redhat-best-practices-for-k8s/oct
22

3-
go 1.22.6
3+
go 1.23.1
44

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

0 commit comments

Comments
 (0)