1

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.

khc
  • 344
  • 2
  • 8
Maca
  • 1,659
  • 3
  • 18
  • 42

1 Answers1

2

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
jeevatkm
  • 4,571
  • 1
  • 23
  • 24
  • The install is redundant. `go get` will install the binary if the referenced package is installable. – Adrian Jun 12 '17 at 12:53
  • @Adrian that's true. Actually `kahing/goofys` requires `go install` otherwise it won't install. – jeevatkm Jun 12 '17 at 16:47
  • That doesn't make any sense... If go get won't install it, neither will go install. Is there a different sub package that needs to be installed? – Adrian Jun 12 '17 at 17:05
  • @Adrian Yep, I had a same doubt then I gave it try; go get didn't produce the binary in the `bin` directory. I have not analyzed the package, may be you can try to analysis. – jeevatkm Jun 12 '17 at 18:03
  • `go get` worked fine for me, it installed the binary in the correct location with no additional steps. The `go install` second step is unnecessary. Make sure you're not passing `-d` to `go install`, which causes it not to install the binary. – Adrian Jun 12 '17 at 18:29
  • I know, I have not passed `-d` argument. It didn't work for me, so I have added that step. Anyway I have update the answer with notes. – jeevatkm Jun 12 '17 at 18:36