Goland – 未解决的依赖问题

huangapple go评论73阅读模式
英文:

Goland - Unresolved dependency

问题

我想让Goland找到我使用go get安装的依赖项。

之前它是可以工作的,但现在当我打开它时,它标记为未解析。

我已经尝试过go mod tidy,但没有起作用。

Goland – 未解决的依赖问题

英文:

I want the goland to find the dependencies that I installed using go get

It was working but now when I open it marks as unresolved

Goland – 未解决的依赖问题

I already tried go mod tidy but it didn't work

答案1

得分: 2

打开Goland中的设置。

确保已切换启用Go模块集成。

英文:

open settings in goland

Goland – 未解决的依赖问题

make sure Enable Go modules integration is toggled

答案2

得分: 0

你是否尝试按照以下方式同步依赖项:链接
<br>
在此处输入图片描述
<br>
并确保在$GOROOT中指定了Go安装位置。

英文:

Did you try to sync dependencies as follow link
<br>
enter image description here
<br>
And make sure you specified the location of your Go installation in $GOROOT

huangapple
  • 本文由 发表于 2022年10月6日 01:17:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/73964072.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定