Skip to content

Commit

Permalink
Merge pull request #355 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…54-to-release-0.9

[release-0.9] Set Golang version for specifing the correct toolchain
  • Loading branch information
openshift-merge-bot[bot] authored Dec 15, 2024
2 parents 90aa49d + 6309967 commit b2dfc8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY go.sum go.sum

RUN \
# get Go version from mod file
export GO_VERSION=$(grep -E "go [[:digit:]]\.[[:digit:]][[:digit:]]" go.mod | awk '{print $2}') && \
export GO_VERSION=$(grep -oE "go [[:digit:]]\.[[:digit:]][[:digit:]]" go.mod | awk '{print $2}') && \
echo ${GO_VERSION} && \
# find filename for latest z version from Go download page
export GO_FILENAME=$(curl -sL 'https://go.dev/dl/?mode=json&include=all' | jq -r "[.[] | select(.version | startswith(\"go${GO_VERSION}\"))][0].files[] | select(.os == \"linux\" and .arch == \"amd64\") | .filename") && \
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/medik8s/node-healthcheck-operator

go 1.23
go 1.23.0

require (
github.com/go-logr/logr v1.4.2
Expand Down

0 comments on commit b2dfc8b

Please sign in to comment.