首页 Function Compute Function Compute FAQ Code development General FAQ What do I do if compilation by using go build takes a long time?

What do I do if compilation by using go build takes a long time?

更新时间: 2026-04-01 02:02:52

If go build compilation takes a long time or is stuttering, you can use a proxy to accelerate compilation. Setting the GOPROXY environment variable routes module downloads through a faster proxy and resolves the issue.

Set GOPROXY for the current session

Export the variable before building:

export GOPROXY=https://goproxy.cn

Then retry go build.

上一篇: Configure asynchronous callbacks for Function Compute SDKs 下一篇: Does Function Compute support SSE?
阿里云首页 函数计算 相关技术圈