Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch secondary go install to go 1.20 #987

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docker/Dockerfile-workers
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ RUN pip3 install -r requirements.txt --no-deps --no-cache-dir --require-hashes \
&& pip3 install . --no-deps --no-cache-dir \
&& rm -rf .git

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

# Use the system CA bundle for the requests library
Expand Down