gopkgs: Update go tools error

go get -u github.com/uudashr/gopkgs/cmd/gopkgs@latest go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191022034909-9ad6b82ad5c3 requires github.com/uudashr/gopkgs/v2@v2.0.3: reading github.com/uudashr/gopkgs/go.mod at revision v2.0.3: unknown revision v2.0.3

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 30
  • Comments: 39 (16 by maintainers)

Commits related to this issue

Most upvoted comments

I got an error just now from VSCode when updating tools:

Using the value /Users/jameslucktaylor/vscode-go from the go.toolsGopath setting.
Installing 1 tool at /Users/jameslucktaylor/vscode-go/bin in module mode.
  gopkgs

Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED

1 tools failed to install.

gopkgs:
Error: Command failed: /usr/local/Cellar/go/1.13.8/libexec/bin/go get -v github.com/uudashr/gopkgs/cmd/gopkgs
go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest
go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires
	github.com/uudashr/gopkgs/v2@v2.1.0 requires
	github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0
go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest
go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires
	github.com/uudashr/gopkgs/v2@v2.1.0 requires
	github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0

Just installed VSCode today and added in Go. Looks like this bug is still open. This is what I got:- go.toolsGopath setting is not set. Using GOPATH /Users/rajeshthampi/go Installing 17 tools at /Users/rajeshthampi/go/bin in module mode. gocode gopkgs go-outline go-symbols guru gorename gotests gomodifytags impl fillstruct goplay godoctor dlv gocode-gomod godef goreturns golint

Installing github.com/mdempsky/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/cweill/gotests/… SUCCEEDED Installing github.com/fatih/gomodifytags SUCCEEDED Installing github.com/josharian/impl SUCCEEDED Installing github.com/davidrjenni/reftools/cmd/fillstruct SUCCEEDED Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED Installing github.com/godoctor/godoctor SUCCEEDED Installing github.com/go-delve/delve/cmd/dlv SUCCEEDED Installing github.com/stamblerre/gocode SUCCEEDED Installing github.com/rogpeppe/godef SUCCEEDED Installing github.com/sqs/goreturns SUCCEEDED Installing golang.org/x/lint/golint SUCCEEDED

1 tools failed to install.

gopkgs: Error: Command failed: /usr/local/go/bin/go get -v github.com/uudashr/gopkgs/cmd/gopkgs go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go: finding github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go: extracting github.com/uudashr/gopkgs v2.0.1+incompatible go: extracting github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0 go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go: finding github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go: extracting github.com/uudashr/gopkgs v2.0.1+incompatible go: extracting github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0

Incredible mistake

It can be fixed locally by cloning this repo and fixing the version in cmd/gopkgs/go.mod file to be v2.1.0 and running go install locally until this is fixed.

have the same problem when updating go tools here is the output

go.toolsGopath setting is not set. Using GOPATH /home/me/go Installing 17 tools at /home/nemo/go/bin in module mode. gocode gopkgs go-outline go-symbols guru gorename gotests gomodifytags impl fillstruct goplay godoctor dlv gocode-gomod godef goreturns golint

Installing github.com/mdempsky/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/cweill/gotests/… SUCCEEDED Installing github.com/fatih/gomodifytags SUCCEEDED Installing github.com/josharian/impl SUCCEEDED Installing github.com/davidrjenni/reftools/cmd/fillstruct SUCCEEDED Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED Installing github.com/godoctor/godoctor SUCCEEDED Installing github.com/go-delve/delve/cmd/dlv SUCCEEDED Installing github.com/stamblerre/gocode SUCCEEDED Installing github.com/rogpeppe/godef SUCCEEDED Installing github.com/sqs/goreturns SUCCEEDED Installing golang.org/x/lint/golint SUCCEEDED

1 tools failed to install.

gopkgs: Error: Command failed: /usr/local/go/bin/go get -v github.com/uudashr/gopkgs/cmd/gopkgs go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go: finding github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go: downloading github.com/uudashr/gopkgs v2.0.1+incompatible go: extracting github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go: extracting github.com/uudashr/gopkgs v2.0.1+incompatible go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0 go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go: finding github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go: downloading github.com/uudashr/gopkgs v2.0.1+incompatible go: extracting github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go: extracting github.com/uudashr/gopkgs v2.0.1+incompatible go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0

Please tag and release the patch (v2.1.1). Thanks @uudashr!

I’m having the same issue on VScode too. Are there any solutions?

Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED

1 tools failed to install.

gopkgs: Error: Command failed: /usr/local/go/bin/go get -v github.com/uudashr/gopkgs/cmd/gopkgs go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0 go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0

I have the same issue on VS Code, but no errors if I run go get -v -u github.com/uudashr/gopkgs/cmd/gopkgs on the terminal. VS Code still doesn’t work like what others experienced.

I have a question, though.

Shouldn’t v2 be a tag in the project and not a directory with another go module inside? Even if PR #24 fixes it with a replace, that looks like a hack to me.

I’m probably wrong since I don’t know the implementation details and why the main cmd/gopkgs uses its own v2 internally.

Still broken:

# get https://proxy.golang.org/github.com/@v/list
# get https://proxy.golang.org/github.com/uudashr/gopkgs/@v/list
# get https://proxy.golang.org/github.com/uudashr/gopkgs/cmd/gopkgs/@v/list
# get https://proxy.golang.org/github.com/uudashr/gopkgs/cmd/@v/list
# get https://proxy.golang.org/github.com/uudashr/@v/list
# get https://proxy.golang.org/github.com/uudashr/gopkgs/cmd/@v/list: 410 Gone (1.880s)
# get https://proxy.golang.org/github.com/uudashr/gopkgs/cmd/gopkgs/@v/list: 200 OK (1.880s)
# get https://proxy.golang.org/github.com/uudashr/@v/list: 410 Gone (1.880s)
go: finding github.com/uudashr/gopkgs/cmd/gopkgs latest
# get https://proxy.golang.org/github.com/uudashr/gopkgs/cmd/gopkgs/@latest
# get https://proxy.golang.org/github.com/@v/list: 410 Gone (1.919s)
# get https://proxy.golang.org/github.com/uudashr/gopkgs/@v/list: 200 OK (1.924s)
# get https://proxy.golang.org/github.com/uudashr/gopkgs/cmd/gopkgs/@latest: 200 OK (0.273s)
# get https://proxy.golang.org/github.com/uudashr/gopkgs/v2/@v/v2.0.3.mod
# get https://proxy.golang.org/github.com/uudashr/gopkgs/v2/@v/v2.0.3.mod: 410 Gone (0.268s)
mkdir -p /Users/lingchax/.go/pkg/mod/cache/vcs # git3 https://github.com/uudashr/gopkgs
# lock /Users/lingchax/.go/pkg/mod/cache/vcs/6edb4a7a3d5cdbf3814ead5a7d160ced26500050f949b1bd8d13baf894718aa7.lock# /Users/lingchax/.go/pkg/mod/cache/vcs/6edb4a7a3d5cdbf3814ead5a7d160ced26500050f949b1bd8d13baf894718aa7 for git3 https://github.com/uudashr/gopkgs
cd /Users/lingchax/.go/pkg/mod/cache/vcs/6edb4a7a3d5cdbf3814ead5a7d160ced26500050f949b1bd8d13baf894718aa7; git tag -l
0.012s # cd /Users/lingchax/.go/pkg/mod/cache/vcs/6edb4a7a3d5cdbf3814ead5a7d160ced26500050f949b1bd8d13baf894718aa7; git tag -l
cd /Users/lingchax/.go/pkg/mod/cache/vcs/6edb4a7a3d5cdbf3814ead5a7d160ced26500050f949b1bd8d13baf894718aa7; git ls-remote -q https://github.com/uudashr/gopkgs
4.869s # cd /Users/lingchax/.go/pkg/mod/cache/vcs/6edb4a7a3d5cdbf3814ead5a7d160ced26500050f949b1bd8d13baf894718aa7; git ls-remote -q https://github.com/uudashr/gopkgs
go get: github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191022034909-9ad6b82ad5c3 requires
	github.com/uudashr/gopkgs/v2@v2.0.3: reading github.com/uudashr/gopkgs/go.mod at revision v2.0.3: unknown revision v2.0.3

@nezorflame thanks for the clarification.