Skip to content

Commit 392bc22

Browse files
committed
GOPRIVATE 问题修复
1 parent f09a978 commit 392bc22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/issue-007.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Go1.13 正式发布,圈内发布了相关的文章,本期周刊无疑这方
2424
2525
设置 GOPRIVATE 来跳过私有库,比如常用的 Gitlab 或 Gitee 或 Gitea,中间使用逗号分隔:
2626

27-
> go env -w GOPRIVATE=*.gitlab.com,*.gitee.com,*.gitea.com
27+
> go env -w GOPRIVATE=gitlab.com,gitee.com,gitea.com
2828
2929
如果在运行 go mod vendor 时,提示 `Get https://sum.golang.org/lookup/xxxxxx: dial tcp 216.58.200.49:443: i/o timeout`,则是因为 Go 1.13 设置了默认的 GOSUMDB=sum.golang.org,这个网站是被墙了的,用于验证包的有效性,可以通过如下命令关闭:
3030

0 commit comments

Comments
 (0)