Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile: gomobile version doesn't work when not checked out under GOPATH or not built in GOPATH mode #37654
What version of Go are you using (
Well, for me, the following worked, so maybe this what was meant for how to build. Just go get the gomobile package from any directory without a go.mod file.
When I did it inside a directory with go.mod, the source code wasn't copied to $GOPATH src tree, and the binary seems to be functioning improperly.