“没有使用godep,而是使用go get”尽管我运行了“go get github.com/tools/godep”。

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

"no godep, using go get instead" even though I ran "go get github.com/tools/godep"

问题

我正在尝试构建syncthing

$ ./build.sh 
警告:没有godep,使用"go get"代替。
尝试"go get github.com/tools/godep"。

尽管这只是一个警告,但我想让它消失。根据消息的建议,我运行了:

go get github.com/tools/godep

但即使这样做,仍然出现相同的错误。我的$GOPATH/bin目录中包含一个名为godep的可执行文件。

如何修复这个警告?

Ubuntu 2013.10 go版本go1.1.2 linux/amd64

更新:我刚意识到这个警告是由build.sh本身生成的,所以问题可能比我想象的更局部化。

英文:

I am trying to build syncthing:

$ ./build.sh 
Warning: no godep, using "go get" instead.
Try "go get github.com/tools/godep".

Even though it is only a warning, I would like to make it disappear.
As suggested by the message, I ran:

go get github.com/tools/godep

But even after doing so, the same error appears.
My $GOPATH/bin contains an executable called godep.

How to fix this warning?

Ubuntu 2013.10 go version go1.1.2 linux/amd64

UPDATE: I just realized that this warning is generated by build.sh itself, so the problem might be more localized than I thought.

答案1

得分: 6

问题是我没有在$PATH中包含$GOPATH/bin

export PATH="${PATH}:${GOPATH}/bin"

这样警告就消失了。

英文:

The problem was that I had not included $GOPATH/bin in my $PATH:

export PATH="${PATH}:${GOPATH}/bin"

That made the warning disappear.

huangapple
  • 本文由 发表于 2014年4月17日 15:36:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/23127239.html
匿名

发表评论

匿名网友

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

确定