Skip to content

Commit

Permalink
Update Go to v1.23.1 (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 authored Sep 5, 2024
1 parent a9e12af commit 6c45e71
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.22.6
go-version: 1.23.1

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

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

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ RUN yum install -y gcc git jq make wget
ENV \
GO_DL_URL=https://golang.org/dl \
GOPATH=/root/go
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.22.6.linux-amd64.tar.gz
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.22.6.linux-arm64.tar.gz
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.23.1.linux-amd64.tar.gz
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.23.1.linux-arm64.tar.gz

# Determine the CPU architecture and download the appropriate Go binary
RUN \
if [ "$(uname -m)" = x86_64 ]; then \
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_x86_64} --quiet \
&& rm -rf /usr/local/go \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-amd64.tar.gz; \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-amd64.tar.gz; \
elif [ "$(uname -m)" = aarch64 ]; then \
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_aarch64} --quiet \
&& rm -rf /usr/local/go \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-arm64.tar.gz; \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-arm64.tar.gz; \
else \
echo "CPU architecture is not supported." && exit 1; \
fi
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ RUN yum install -y gcc git jq make wget
ENV \
GO_DL_URL=https://golang.org/dl \
GOPATH=/root/go
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.22.6.linux-amd64.tar.gz
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.22.6.linux-arm64.tar.gz
ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.23.1.linux-amd64.tar.gz
ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.23.1.linux-arm64.tar.gz

# Determine the CPU architecture and download the appropriate Go binary
RUN \
if [ "$(uname -m)" = x86_64 ]; then \
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_x86_64} --quiet \
&& rm -rf /usr/local/go \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-amd64.tar.gz; \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-amd64.tar.gz; \
elif [ "$(uname -m)" = aarch64 ]; then \
wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_aarch64} --quiet \
&& rm -rf /usr/local/go \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.22.6.linux-arm64.tar.gz; \
&& tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.1.linux-arm64.tar.gz; \
else \
echo "CPU architecture is not supported." && exit 1; \
fi
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/redhat-best-practices-for-k8s/oct

go 1.22.6
go 1.23.1

require (
github.com/Masterminds/semver/v3 v3.3.0
Expand Down

0 comments on commit 6c45e71

Please sign in to comment.