cmd/go: module mode doesn't work without go.mod #26994
Labels
FrozenDueToAge
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?
Yes
What operating system and processor architecture are you using (
go env
)?Debian Stretch
What did you expect to see, what did you see instead?
Maybe I'm wrong here, and I've just missed some bit of documentation. But I was originally expecting the following to work:
Is there currently no implementation to specify a directory beyond the cwd? As shown above, even the behavior of the old
go build path/to/main.go
no longer works with vgo. Is there a plan for the top level directory or specifyinggo.mod
s to build from an outside directory?The text was updated successfully, but these errors were encountered: