Skip to content

Commit 329c30f

Browse files
Downgrade go version to 1.23.6 version
1 parent bdbb10f commit 329c30f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Dockerfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ FROM registry.access.redhat.com/ubi9/ubi:9.5 as bp-cli-builder
1515
RUN yum install --assumeyes \
1616
make \
1717
git \
18-
wget
18+
wget \
19+
go-toolset
1920

20-
# Install Go 1.23.7 properly
21-
RUN go install golang.org/dl/go1.23.7@latest
22-
RUN /root/go/bin/go1.23.7 download
21+
# Install Go 1.23.6 properly
22+
RUN go install golang.org/dl/go1.23.6@latest
23+
RUN /root/go/bin/go1.23.6 download
2324

2425
# Configure the env
25-
ENV PATH="/root/sdk/go1.23.7/bin:${PATH}"
26-
RUN go1.23.7 env -w GOTOOLCHAIN=go1.23.7+auto
26+
ENV PATH="/root/sdk/go1.23.6/bin:${PATH}"
27+
RUN go env -w GOTOOLCHAIN=go1.23.6+auto
2728

2829
#Environment variables
2930
ENV GOOS=linux GO111MODULE=on GOPROXY=https://proxy.golang.org

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openshift/backplane-cli
22

3-
go 1.23.7
3+
go 1.23.6
44

55
require (
66
github.com/Masterminds/semver v1.5.0

0 commit comments

Comments
 (0)