cmd/go: no required module provides package main.go; to add it #48117
Labels
GoCommand
cmd/go
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?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
rm main.go
go build main.go
What did you expect to see?
stat main.go: no such file or directory
What did you see instead?
$ go build main.go
no required module provides package main.go; to add it:
go get main.go
$ go get main.go
go get main.go: arguments must be package or module paths
The text was updated successfully, but these errors were encountered: