gopkgs: failing on install

Ran from the normal “Go:Install/Update tools”

my env:

x-MacBook-Pro:~ apple$ code -v
1.23.1
d0182c3417d225529c6d5ad24b7572815d0de9ac
x64


x-MacBook-Pro:~ apple$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/apple/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/opt/go/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build450578454=/tmp/go-build -gno-record-gcc-switches -fno-common"
x-MacBook-Pro:~ apple$ 

output:

Installing 15 tools at /Users/apple/workspace/go/bin
  gocode
  gopkgs
  go-outline
  go-symbols
  guru
  gorename
  gomodifytags
  goplay
  impl
  fillstruct
  godef
  godoc
  goreturns
  golint
  gotests

Installing github.com/nsf/gocode SUCCEEDED
Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED
Installing github.com/ramya-rao-a/go-outline SUCCEEDED
Installing github.com/acroca/go-symbols SUCCEEDED
Installing golang.org/x/tools/cmd/guru SUCCEEDED
Installing golang.org/x/tools/cmd/gorename SUCCEEDED
Installing github.com/fatih/gomodifytags SUCCEEDED
Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED
Installing github.com/josharian/impl SUCCEEDED
Installing github.com/davidrjenni/reftools/cmd/fillstruct SUCCEEDED
Installing github.com/rogpeppe/godef SUCCEEDED
Installing golang.org/x/tools/cmd/godoc SUCCEEDED
Installing github.com/sqs/goreturns SUCCEEDED
Installing github.com/golang/lint/golint SUCCEEDED
Installing github.com/cweill/gotests/... SUCCEEDED

1 tools failed to install.

gopkgs:
Error: Command failed: /usr/local/opt/go/libexec/bin/go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
github.com/uudashr/gopkgs (download)
github.com/karrick/godirwalk (download)
github.com/pkg/errors (download)
# cd /Users/apple/workspace/go/src/github.com/pkg/errors; git pull --ff-only
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

package github.com/pkg/errors: exit status 1
github.com/uudashr/gopkgs (download)
github.com/karrick/godirwalk (download)
github.com/pkg/errors (download)
# cd /Users/apple/workspace/go/src/github.com/pkg/errors; git pull --ff-only
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

package github.com/pkg/errors: exit status 1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 27 (12 by maintainers)

Most upvoted comments

@uudashr This issue is definitely not resolved. I just opened VSCode and installed go extension for the first time and I got the above error while installing gopkgs

I got a very similar error just now when I tried to update the Go tools from VSCode. Then I ran the following and it worked correctly:

GOPATH=~/installs/go-tools go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
github.com/uudashr/gopkgs (download)
github.com/uudashr/gopkgs/vendor/github.com/pkg/errors
github.com/uudashr/gopkgs/vendor/github.com/karrick/godirwalk
github.com/uudashr/gopkgs
github.com/uudashr/gopkgs/cmd/gopkgs

Not sure what’s happening here. Now, even the VSCode tools update succeeds.

same here

  1. The go plugin for vscode updated

  2. then i ran go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs and it worked.

dont knwo why…

On Tue, 15 May 2018 at 05:27 Suhas Karanth notifications@github.com wrote:

I got a very similar error just now when I tried to update the Go tools from VSCode. Then I ran the following and it worked correctly:

GOPATH=~/installs/go-tools go get -u -v github.com/uudashr/gopkgs/cmd/gopkgsgithub.com/uudashr/gopkgs (download)github.com/uudashr/gopkgs/vendor/github.com/pkg/errorsgithub.com/uudashr/gopkgs/vendor/github.com/karrick/godirwalkgithub.com/uudashr/gopkgsgithub.com/uudashr/gopkgs/cmd/gopkgs

Not sure what’s happening here. Now, even the VSCode tools update succeeds.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uudashr/gopkgs/issues/6#issuecomment-389031316, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwh13mSqiccHOv-FH1k6IGyt4xkS7ks5tyksMgaJpZM4T9oYW .