gopkgs: go get failed

$ GO111MODULE=on go get 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-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

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 56
  • Comments: 34 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Not sure if it is a workaround, but it seems to get rid of when deploy Go on VSCode, by changing from: GO111MODULE=on go get github.com/uudashr/gopkgs/cmd/gopkgs@latest to: GO111MODULE=on go get github.com/uudashr/gopkgs/cmd/gopkgs@v2

FYI this issue will come up anytime someone does a fresh install of VSCode (as I just did).

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

I can also reproduce this. Any known workarounds?

@BaptisteOue same applies to your case. Do not install it from the VSCode until the fix is merged, instead do this:

  • open cmd/PowerShell
  • go to some folder which doesn’t contain Go code (otherwise you’ll make changes to it), for example, your home folder
  • write in the command line: C:\Go\bin\go.exe get github.com/uudashr/gopkgs/v2/cmd/gopkgs to install the tool manually

https://github.com/microsoft/vscode-go/pull/3057 should fix the issue for the VSCode users with the github.com/uudashr/gopkgs/v2/cmd/gopkgs path. As for the v1 path, we’ll probably have to introduce the go.mod again to the ./cmd/gopkgs package.

@fearform for now just install it manually from the v2 path: go get github.com/uudashr/gopkgs/v2/cmd/gopkgs

Try to run “go get -v github.com/uudashr/gopkgs/cmd/gopkgs” in folder C:\Go\bin using Command Prompt, and VCS should work properly.

Oh… I think I know the reason. Try with GOPROXY=direct go get ...

@uudashr I think all that’s necessary to fix this is to tag a v2.1.2 release. Right now https://github.com/uudashr/gopkgs/blob/master/go.mod references v2.1.2, but that doesn’t exist.

I’m getting the same error.

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

BTW the proper way to consume the gopkgs now that it has v2 is: go get github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest or go get github.com/uudashr/gopkgs/v2/cmd/gopkgs@master for master branch.

Once we confirm the tag worked, it needs to be used this way in VSCode as well.