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
- Update go.mod Fixes https://github.com/uudashr/gopkgs/issues/22 — committed to nezorflame/gopkgs by nezorflame 5 years ago
I got an error just now from VSCode when updating tools:
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.modfile to bev2.1.0and runninggo installlocally 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’ve created the ticket here https://github.com/uudashr/gopkgs/issues/25 cc @nezorflame
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/gopkgson 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:
@nezorflame thanks for the clarification.