go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

My program is too slow to build, how to fix or troubleshoot it

Open yizhixiaozhuzai opened this issue 1 year ago • 3 comments
trafficstars

it took too much time to build, even 5 minutes, but program is relatively small!, i don't know how to troubleshoot it and fix it, It's been bothering me for a long time.

yizhixiaozhuzai avatar Jan 25 '24 09:01 yizhixiaozhuzai

you can use go build -x ... View the build process to see which steps take the most time, I guess it’s because downloading dependencies is too slow.

jan-bar avatar Feb 01 '24 03:02 jan-bar

Check your GOPROXY settings.

kevwan avatar Feb 02 '24 02:02 kevwan