Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: misleading "malformed module path" error with -m flag for wildcard patterns with versions #42714

bcmills opened this issue Nov 19, 2020 · 0 comments


Copy link

@bcmills bcmills commented Nov 19, 2020

go list -m supports module wildcards, and supports version queries. However, if you try to combine a wildcard with a version query, you currently get a misleading malformed module path error rather than the result of applying the query to each module in the build list that matches the wildcard.$ go version
go version devel +a14e7bf6d Wed Nov 18 06:29:09 2020 +0000 linux/amd64$ go mod init
go: creating new go.mod: module$ go get -d
go: downloading v0.3.4$ go list -m v0.3.4 v0.0.0-20180917221912-90fa682c2a6e$ go list -m v0.3.4$ go list -m
go list -m: malformed module path "": invalid path element "..."

CC @matloob @jayconrod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant