Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

gotests fails to be installed #2936

Closed
Closed
@eraserix

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:

  1. mkdir -p /tmp/tmpmod

  2. echo module tmpmod > /tmp/tmpmod/go.mod

  3. cd /tmp/tmpmod

  4. 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"

  5. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions