[PATCH v2 lkp-tests] bin/lkp-setup-rootfs: add goproxy

20 Oct
2020
20 Oct
'20
9:28 p.m.
Solve go download timeout. Signed-off-by: cuiyili <2268260388@qq.com> --- bin/lkp-setup-rootfs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/lkp-setup-rootfs b/bin/lkp-setup-rootfs index 15002feb..2890601e 100755 --- a/bin/lkp-setup-rootfs +++ b/bin/lkp-setup-rootfs @@ -157,12 +157,22 @@ modify_gem_source() return 0 } +install_goproxy() +{ + mkdir -p /root/.config/go/ + echo "GOPROXY=https://goproxy.io,direct" >> /root/.config/go/env + + return 0 +} + install_proxy() { modify_gem_source install_docker_proxy + install_goproxy + [ -z "$SQUID_HOST" ] && return [ -z "$SQUID_PORT" ] && return -- 2.23.0
1591
Age (days ago)
1591
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cui Yili