Skip to content

Commit

Permalink
Merge pull request #243 from razo7/set-fixed-go-version-toolchain
Browse files Browse the repository at this point in the history
Set Golang version for specifing the correct toolchain
  • Loading branch information
openshift-merge-bot[bot] authored Dec 11, 2024
2 parents 0ea41c4 + 002974b commit ecbb3f6
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 @@ -13,7 +13,7 @@ ENV GOTOOLCHAIN=auto
# Ensure correct Go version
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/self-node-remediation

go 1.23
go 1.23.0

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

0 comments on commit ecbb3f6

Please sign in to comment.