Skip to content

Commit 8cc9d66

Browse files
committed
build: fix go stable API output change in build Dockerfiles
Signed-off-by: Wesley Pettit <[email protected]>
1 parent 1cefcd5 commit 8cc9d66

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/dockerfiles/Dockerfile.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ RUN yum install -y \
4040
ENV HOME /home
4141

4242
# Lock Go Lang version to stable
43-
RUN export GO_STABLE_VERSION=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
43+
RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
44+
IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
4445
echo "Using go:stable version ${GO_STABLE_VERSION}"; \
4546
gimme ${GO_STABLE_VERSION}; \
4647
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \

scripts/dockerfiles/Dockerfile.build-init

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ RUN yum upgrade -y && yum install -y tar gzip git
66
ENV HOME /home
77

88
# Lock Go Lang version to stable
9-
RUN export GO_STABLE_VERSION=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
9+
RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
10+
IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
1011
echo "Using go:stable version ${GO_STABLE_VERSION}"; \
1112
gimme ${GO_STABLE_VERSION}; \
1213
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \

0 commit comments

Comments
 (0)