Skip to content

Commit

Permalink
Merge pull request #298 from openshift-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…97-to-release-0.7

[release-0.7] Fix install of latest Go z version
  • Loading branch information
openshift-merge-bot[bot] authored Mar 6, 2024
2 parents 32b21c8 + eaf8089 commit 1ef38a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ WORKDIR /workspace
COPY go.mod go.mod
COPY go.sum go.sum

# use latest Go z release
ENV GOTOOLCHAIN=auto

# Ensure correct Go version
RUN export GO_VERSION=$(grep -E "go [[:digit:]]\.[[:digit:]][[:digit:]]" go.mod | awk '{print $2}') && \
go get go@${GO_VERSION} && \
Expand Down

0 comments on commit 1ef38a2

Please sign in to comment.