“package XXX is not in GOROOT“ when building a Go project2021-09-06
生活随笔
收集整理的這篇文章主要介紹了
“package XXX is not in GOROOT“ when building a Go project2021-09-06
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
解決方案
stackoverflow
You may have GO111MODULE set “on”, which will be on the go mod. Turning off the GO111MODULE may resolve this problem.
go env -w GO111MODULE=off
總結
以上是生活随笔為你收集整理的“package XXX is not in GOROOT“ when building a Go project2021-09-06的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解决oh my zsh Insecure
- 下一篇: Mac Go 国内加速镜像