Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无外网环境下如何使用go module #192

Open
walkmiao opened this issue Nov 24, 2021 · 2 comments
Open

无外网环境下如何使用go module #192

walkmiao opened this issue Nov 24, 2021 · 2 comments

Comments

@walkmiao
Copy link

无外网环境下搭建goproxyio,那么项目中需要使用一些包。有哪些方法可以把要使用的包上传到goproxyio呢?

@oiooj
Copy link
Member

oiooj commented Nov 25, 2021

可以将这些包上传到部署 goproxyio 服务器的 GOMODCACHE 环境变量下。
GOMODCACHE 是一个环境变量,是 Go 存放 Modules cache 的目录。

@walkmiao
Copy link
Author

walkmiao commented Dec 9, 2021

可以将这些包上传到部署 goproxyio 服务器的 GOMODCACHE 环境变量下。 GOMODCACHE 是一个环境变量,是 Go 存放 Modules cache 的目录。

不好意思,这些天因为忙别的事情没来得及回复。只有这样一种方法吗?有没有其他更方便的处理方式呢。谢谢指导!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants