当前位置:网站首页>GO GOPROXY代理设置
GO GOPROXY代理设置
2022-07-31 00:16:00 【web15286201346】
一 背景:
当你执行go get命令的时候显示超时proxy.golang.org --> timeout
leyangjundeMacBook-Pro:photoleyangjun$ go get -u github.com/spf13/cobra
go get -u github.com/spf13/cobra
go get github.com/spf13/cobra: module github.com/spf13/cobra: Get https://proxy.golang.org/github.com/spf13/cobra/@v/list: dial tcp 142.251.10.141:443: i/o timeout
二:原因
https://proxy.golang.org/github.com/ 国内无法访问
三:换成国内可访问的地址,设置GOPROXY代理
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=off (关闭包的有效性验证)
go env -w GOSUMDB=“sum.golang.google.cn” (也可设置国内提供的sum 验证服务)
备注:-w 标记 要求一个或多个形式为 NAME=VALUE 的参数且覆盖默认的设置
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- Gabor filter study notes
- Gabor滤波器学习笔记
- Learn Scope from a Compilation Perspective!
- Steven Giesel 最近发布了一个由5部分内容组成的系列,记录了他首次使用 Uno Platform 构建应用程序的经验。
- [Meng Xin problem solving] Delete the Nth node from the bottom of the linked list
- DNS resolution process [visit website]
- Understand from the 11 common examples of judging equality of packaging types in the written test: packaging types, the principle of automatic boxing and unboxing, the timing of boxing and unboxing, a
- 动态修改el-tab-pane 的label(整理)
- Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
- 47. 【Pointers and Arrays】
猜你喜欢
随机推荐
How to solve the error of joiplay simulator
software development design process
从笔试包装类型的11个常见判断是否相等的例子理解:包装类型、自动装箱与拆箱的原理、装箱拆箱的发生时机、包装类型的常量池技术
MySQL grant statements
【VisDrone数据集】YOLOV3训练VisDrone数据集步骤与结果
Shell编程条件语句 test命令 整数值,字符串比较 逻辑测试 文件测试
xss的绕过
MySQL中substring与substr区别
数据库的严格模式
47. 【Pointers and Arrays】
How to Repair Word File Corruption
ABC 261 F - Sorting Color Balls(逆序对)
2D Transform Module && Media Queries
MySQL数据库的truncate与delete区别
Strict Mode for Databases
Point Cloud Scene Reconstruction with Depth Estimation
web漏洞之需要准备的工作
Encapsulate and obtain system user information, roles and permission control
ctfshow 文件包含
天空云变化案例