Description
What version of Go, VS Code & VS Code Go extension are you using?
% go version
go version go1.12.14 linux/amd64
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:
% env GOPROXY=https://proxy.golang.org GO111MODULE=on go get -u -v "github.com/cweill/gotests/gotests"
Fetching https://proxy.golang.org/github.com/cweill/gotests/gotests/@v/list
Fetching https://proxy.golang.org/github.com/cweill/gotests/@v/list
Fetching https://proxy.golang.org/github.com/cweill/gotests/@v/v1.5.3.mod
Fetching https://proxy.golang.org/golang.org/x/tools/imports/@v/list
Fetching https://proxy.golang.org/golang.org/x/tools/@v/list
go: finding golang.org/x/tools latest
Fetching https://proxy.golang.org/golang.org/x/tools/@latest
Activity