File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ENV GOTOOLCHAIN=auto
1313# Ensure correct Go version
1414RUN \
1515 # get Go version from mod file
16- export GO_VERSION=$(grep -E "go [[:digit:]]\. [[:digit:]][[:digit:]]" go.mod | awk '{print $2}' ) && \
16+ export GO_VERSION=$(grep -oE "go [[:digit:]]\. [[:digit:]][[:digit:]]" go.mod | awk '{print $2}' ) && \
1717 echo ${GO_VERSION} && \
1818 # find filename for latest z version from Go download page
1919 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" ) && \
Original file line number Diff line number Diff line change 11module github.com/medik8s/self-node-remediation
22
3- go 1.23
3+ go 1.23.0
44
55require (
66 github.com/go-logr/logr v1.4.2
You can’t perform that action at this time.
0 commit comments