we are trying to build an application, but unable to generate the code using protoc-gen-go
$ make
go version go1.18 linux/amd64
/usr/local/go/bin/go
make -C go_source all
make[1]: Entering directory '/home/593m/team_name/zk/internal-pkg/go_source' cd /home/593m/team_name/zk/internal-pkg/go_source//src/nexus.com/vendor/github.com/golang/protobuf/protoc-gen-go; go install without -mod=vendor, directory /home/593m/team_name/zk/internal-pkg/go_source/src/appnexus.com/vendor/github.com/golang/protobuf/protoc-gen-go has no package path Makefile:72: recipe for target '/home/593m/team_name/zk/internal-pkg/go_source/bin/protoc-gen-go' failed make[1]: *** [/home/593m/team_name/zk/internal-pkg/go_source/bin/protoc-gen-go] Error 1 make[1]: Leaving directory '/home/593m/team_name/zk/internal-pkg/go_source'' Makefile:26: recipe for target 'all' failed make: *** [all] Error 2
Make file :
$(REPOROOT)/bin/protoc-gen-go: $(REPOROOT)/src/nexus.com/vendor/github.com/golang/protobuf/protoc-gen-go/*.go cd $(REPOROOT)/src/nexus.com/vendor/github.com/golang/protobuf/protoc-gen-go; $(GOINSTALL)
$(REPOROOT)/bin/generate_proto: $(REPOROOT)/bin/protoc-gen-go $(REPOROOT)/resources/proto/* mkdir -p $(REPOROOT)/src/nexus.com/odc/odcproto #######ODCPROTO gets generated in this step
google.golang.org/protobuf/cmd/protoc-gen-go