cmd/go: go get <current package> gives arcane error #54745
Labels
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
was trying a command in the wrong cwd and the error lead me to think my command was wrong, not the directory... An updated output could help.
-->
What did you expect to see?
I presume this is because you cannot import a module into itself? If so it might be helpful to emit a message that indicates a hint that you cannot do that
eg:
What did you see instead?
Happy to help with a PR if we agree this is would be a good change.
The text was updated successfully, but these errors were encountered: