File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 166
166
# get Go stable version
167
167
# Dockerfiles do not allow env vars to be set by commands
168
168
# and persist from one command to the next
169
- GO_OUTPUT=$( curl --silent https://go.dev/VERSION? m=text | cut -d " o" -f 2)
170
- OLD_IFS=$IFS
171
- IFS=$' \n ' GO_STABLE_VERSION=($GO_OUTPUT )
172
- IFS=$OLD_IFS
169
+ # GO_OUTPUT=$(curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2)
170
+ # OLD_IFS=$IFS
171
+ # IFS=$'\n' GO_STABLE_VERSION=($GO_OUTPUT)
172
+ # IFS=$OLD_IFS
173
+ # 2023-08-21: pinning to 1.20.7 go as 1.21.0 fails with FLB
174
+ # https://github.com/golang/go/issues/62130#issuecomment-1684431260
175
+ export GO_STABLE_VERSION=" 1.20.7"
173
176
echo " Using go:stable version ${GO_STABLE_VERSION} "
174
177
PLUGIN_BUILD_ARGS=" $PLUGIN_BUILD_ARGS --build-arg GO_STABLE_VERSION=${GO_STABLE_VERSION} "
175
178
Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ RUN yum install -y \
38
38
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
39
39
--family cmake
40
40
ENV HOME /home
41
+ ENV GO_STABLE_VERSION 1.20.7
41
42
42
43
# Lock Go Lang version to stable
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); \
45
- echo "Using go:stable version ${GO_STABLE_VERSION}"; \
44
+ # RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
45
+ # IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
46
+ RUN echo "Using go:stable version ${GO_STABLE_VERSION}"; \
46
47
gimme ${GO_STABLE_VERSION}; \
47
48
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \
48
49
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.amd64 /home/.gimme/versions/gostable.linux.amd64
Original file line number Diff line number Diff line change @@ -4,11 +4,12 @@ RUN curl -sL -o /bin/gimme https://github.com/raw/travis-ci/gimme/mas
4
4
RUN chmod +x /bin/gimme
5
5
RUN yum upgrade -y && yum install -y tar gzip git
6
6
ENV HOME /home
7
+ ENV GO_STABLE_VERSION 1.20.7
7
8
8
9
# Lock Go Lang version to stable
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); \
11
- echo "Using go:stable version ${GO_STABLE_VERSION}"; \
10
+ # RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
11
+ # IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
12
+ RUN echo "Using go:stable version ${GO_STABLE_VERSION}"; \
12
13
gimme ${GO_STABLE_VERSION}; \
13
14
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \
14
15
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.amd64 /home/.gimme/versions/gostable.linux.amd64
You can’t perform that action at this time.
0 commit comments