godef icon indicating copy to clipboard operation
godef copied to clipboard

go get -u -v github.com/rogpeppe/godef error

Open zanjs opened this issue 9 years ago • 2 comments

 anla@Anla  ~/go/src/golang-day-test master: go get -u -v github.com/rogpeppe/godef
github.com/rogpeppe/godef (download)
# cd /Users/anla/go/src/github.com/rogpeppe/godef; git pull --ff-only
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

package github.com/rogpeppe/godef: exit status 1

zanjs avatar Feb 12 '17 10:02 zanjs

same problem.

modyuan avatar Apr 03 '18 10:04 modyuan

These steps have helped me:

  1. Make sure that yours GOPATH variable is set properly (invoke $ env | grep 'GOPATH' in Terminal application and check if this value equals /Users/{your_user_name}/go (a place where go is installed)).
  2. Remove files in /Users/{your_user_name}/go/src (invoke $ rm -rf /Users/{your_user_name}/go/src/ in Terminal application) and try to install godef once again.

albinekcom avatar Feb 24 '19 12:02 albinekcom