【发布时间】:2020-07-09 15:50:24
【问题描述】:
Goland 未检测到从 github.com 导入的模块。这些模块在 $GOPATH/pkg/mod 目录中可用,但导入没有被解析。供应商目录也下载了所有包。
Goland 版本:2019.3.3 围棋版本:围棋 1.13.7
在偏好下:
- GOROOT is set to /usr/local/go
- Global GOPATH is set to /Users/xyz/go
- Go module integration is enabled
- Enable vendoring support is enabled.
- dep integration is not enabled.
项目结构:
- project-name
- bin
- build
- cmd
- serviced
- main.go
- internal
- config
- config.go
- vendor
- github.com
- .....
- go.mod
- External Libraries
- GO SDK 1.13.7
值得一提的是,Goland 并没有下载外部库下的 Go 模块。
【问题讨论】:
-
我们最近修复了一些相关的错误。你能更新到2019.3.4吗?有帮助吗?
-
$GOPATH/pkg/mod 与 vendoring 完全无关。
标签: go build goland go-modules