如何在Amazon Linux中更新Go应用程序

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

How to update Go application in Amazon Linux

问题

我不熟悉Go语言。我想要更新这个应用程序https://github.com/kahing/goofys 到最新版本(目前是v0.0.10)。
我尝试了以下命令:

$ go get github.com/kahing/goofys

$ go install github.com/kahing/goofys

但是版本没有改变。我需要帮助。

英文:

I am not familiar with Go. I want to update this application https://github.com/kahing/goofys to the recent version(right now its v0.0.10).
I tried

$ go get github.com/kahing/goofys

$ go install github.com/kahing/goofys

But the version does not change. I need help.

答案1

得分: 2

只需运行,-u 用于更新。

go get -u github.com/kahing/goofys

然后运行(可选步骤,如果在 $GOPATH/bin 中看到二进制文件 goofys;不需要执行 go install。请参考注释说明)

go install github.com/kahing/goofys
英文:

Just run, -u is used for update.

go get -u github.com/kahing/goofys

Then run (optional step, if you see a binary goofys in $GOPATH/bin; go install is not required. See comments why)

go install github.com/kahing/goofys

huangapple
  • 本文由 发表于 2017年6月12日 14:45:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/44492930.html
匿名

发表评论

匿名网友

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

确定