英文:
"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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论