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: strange error when building: no Go source files #31004
The root is not inside GOPATH (That is why I use go mod), this is submodule in my cxx project.
When I tried to build from the root
The pubsub rpc proto module will be referenced by proxy server
package proxy import ( "flag" "fmt" "net/http" "github.com/golang/glog" "golang.org/x/net/context" "github.com/grpc-ecosystem/grpc-gateway/runtime" "google.golang.org/grpc" gw "GO_ROOT/pubsub" )
Here is my mod info:
Here is my go env
I can compile go projects above outside of GoROOT
It was a painful process before I found go mod to just find out that it does not work at all.
Ridiculous! I treat it as a bug from language or it is a language design problem.