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..4aacb970 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/env + 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