Skip to content

Commit 4d1c50d

Browse files
authored
fix: add golang download mirror url to avoid google bucket url (#1803)
Signed-off-by: ehila <ehila@redhat.com>
1 parent ed70919 commit 4d1c50d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

01_install_requirements.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ else
146146
fi
147147

148148
GO_VERSION=${GO_VERSION:-1.22.3}
149+
GO_CUSTOM_MIRROR=${GO_CUSTOM_MIRROR:-"https://go.dev/dl"}
149150

150151
GOARCH=$(uname -m)
151152
if [[ $GOARCH == "aarch64" ]]; then
@@ -170,6 +171,7 @@ ANSIBLE_FORCE_COLOR=true ansible-playbook \
170171
-e "working_dir=$WORKING_DIR" \
171172
-e "virthost=$HOSTNAME" \
172173
-e "go_version=$GO_VERSION" \
174+
-e "go_custom_mirror=$GO_CUSTOM_MIRROR" \
173175
-e "GOARCH=$GOARCH" \
174176
$ALMA_PYTHON_OVERRIDE \
175177
-i vm-setup/inventory.ini \

config_example.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ set -x
161161
#
162162
#export GO_VERSION="1.21.6"
163163

164+
# Go download mirror to use
165+
# The url to use to download the golang binary. The default value is https://go.dev/dl
166+
#
167+
#export GO_CUSTOM_MIRROR="https://go.dev/dl"
168+
164169
################################################################################
165170
## General Settings
166171
##

0 commit comments

Comments
 (0)