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: go get with absolute path reports 'malformed module path: empty path element' #38038
Comments
Following the same idea, should |
This doesn't seem like a bug. Why should Arguments to This is pretty convenient, I think. Changing this would break scripts and automation, too. |
@jayconrod you are right, thanks. I was not aware that I'm not sure what Out of curiosity I tried, inside a module.
with a little expectation for On the other hand (using the same
When outside a module
That is a different error message, compared to the case of getting a remote module. This means that Thanks. |
For For For |
For
Thanks. |
Thanks, reproduced that one with 1.14.1. If it's all right, I'll repurpose this issue for fixing that message specifically. I think the other behaviors and messages are correct. |
Change https://golang.org/cl/226857 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I noted that
go get golang.org/x/mod/module///
does not report an error. Probably it should, since the path specified is not a valid import path.The trailing slashes are removed before doing the HTTP request.
Thanks
EDIT by jayconrod: see comments below.
go get $(pwd)
reports an error when run in the module root directory if no package is present.The text was updated successfully, but these errors were encountered: