Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: unexpected behavior of 'go build all' outside of GOPATH #27053
GOPATH=$HOME/go PWD=$HOME/scratch/testmod GO111MODULE=auto (the default)
If explicitly set
Note that this is the same behavior you'd get inside GOPATH.
It sounds like maybe you think the module mode should have kicked in,
So both halves of this are unfortunate but working as intended: