Skip to content

Commit 9fa5c43

Browse files
committed
switch secondary go install to go 1.20
The latest version of the go package available in fedora-38 has moved from go1.20 to go1.21. Since we require both go >= 1.21 and go1.20 to be installed in the image, switch the secondary install from go1.21 to go1.20. Signed-off-by: Taylor Madore <[email protected]>
1 parent 3921530 commit 9fa5c43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/Dockerfile-workers

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ RUN pip3 install -r requirements.txt --no-deps --no-cache-dir --require-hashes \
2727
&& pip3 install . --no-deps --no-cache-dir \
2828
&& rm -rf .git
2929

30-
# Install a newer version of Go fixed at 1.21.0 (along with the base 1.20.X):
30+
# Install an older version of Go fixed at 1.20 (along with the base >= 1.21):
3131
# - install Go's official shim
3232
# - let the shim download the actual Go SDK (the download forces the output parent dir to $HOME)
3333
# - move the SDK to a host local install system-wide location
3434
# - remove the shim as it forces and expects the SDK to be used from $HOME
3535
# - clean any build artifacts Go creates as part of the process.
36-
RUN go install 'golang.org/dl/go1.21.0@latest' && \
37-
"$HOME/go/bin/go1.21.0" download && \
36+
RUN go install 'golang.org/dl/go1.20@latest' && \
37+
"$HOME/go/bin/go1.20" download && \
3838
mkdir /usr/local/go && \
39-
mv "$HOME/sdk/go1.21.0" /usr/local/go && \
39+
mv "$HOME/sdk/go1.20" /usr/local/go && \
4040
rm -rf "$HOME/go" "$HOME/.cache/go-build/"
4141

4242
# Use the system CA bundle for the requests library

0 commit comments

Comments
 (0)