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)
@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:
Not sure what’s happening here. Now, even the VSCode tools update succeeds.
same here
The go plugin for vscode updated
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: