-
Notifications
You must be signed in to change notification settings - Fork 645
gotests fails to be installed #2936
Comments
Thanks for reporting @eraserix @stamblerre Can you take a look at this? It might be related to the changes we made around the tool installation code. |
I believe that in the extension we explicitly excluded |
Yeah, right: https://github.com/microsoft/vscode-go/blob/0.11.9/src/goInstallTools.ts#L145 I checked again on another computer with another version of go (1.13.5). When I ONLY select gotests for installation, gotests gets installed, but vscode never notices that gotests has been installed and just seems to hang (but ~/go/bin/gotests is there) If I select another go tool AFTER gotests (say golint), both utilities are installed successfully. I'll check again what error I get from vscode next week. |
The fix for this should be available in the latest beta version of this extension. Please try it out and let us know how it goes |
The results with go 1.12.14 and go extension 0.11.10-beta.5: Installing gotests alone works.
|
Thanks for trying again! It seems to be something specific to Go 1.12, and I was able to reproduce when I checked out that version. Even though this isn't an issue with Go 1.13, I mailed a PR that I think solves the problem. |
@eraserix Can you try again with the latest beta version that has the recent fixes |
The latest version of this extension (0.12.0) has this fix for this issue. Thanks to @eraserix for reporting and to @stamblerre for the fix :) Happy Coding! |
Unfortunately, I still get an error with go 1.12.14 and go extension 0.12.0. gotests can only be installed successfully as last or only selection. |
Just confirming that I had/have the same issue as @eraserix (Go go1.12.14 and 0.12.0). Installed it as the only one selected in the updater and then it worked. |
@stamblerre Can you please take a look at this? |
Thanks for the reports. Just mailed #2970 which I believe should be the right fix. |
What version of Go, VS Code & VS Code Go extension are you using?
Describe the bug
When trying to install gotests, I always get an error:
go get github.com/cweill/gotests/...: no matching versions for query "latest"
Steps to reproduce the behavior:
mkdir -p /tmp/tmpmod
echo module tmpmod > /tmp/tmpmod/go.mod
cd /tmp/tmpmod
env GO111MODULE=on go get -u -v "github.com/cweill/gotests/..."
go: finding github.com/cweill/gotests/... latest
Fetching https://github.com?go-get=1
Parsing meta tags from https://github.com?go-get=1 (status code 200)
go get github.com/cweill/gotests/...: no matching versions for query "latest"
Or alternatively via goproxy:
env GOPROXY=https://proxy.golang.org GO111MODULE=on go get -u -v "github.com/cweill/gotests/..."
Fetching https://proxy.golang.org/github.com/cweill/gotests/@v/list
Fetching https://proxy.golang.org/github.com/cweill/@v/list
Fetching https://proxy.golang.org/github.com/@v/list
go get github.com/cweill/gotests/...: malformed module path "github.com/cweill/gotests/...": double dot
What seems to works
I think the problem is caused by a combination of "..." in the path and modules support. Explicitly specifying the binary gotests works:
The text was updated successfully, but these errors were encountered: