You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've adopted moon and, by virtue of that, proto as our standard tooling for managing our toolchain and builds in our monorepo. We use protobuf and gRPC for many things and thus I'm looking for a solution to standardize the protoc dependency and the bindings for Golang. Protobuf is easy enough, we'll just need to create a custom plugin for protoc. The bindings portion is a bit more complicated.
The gPRC bindings are installed using go install, in point go install at google.golang.org/grpc/cmd/protoc-gen-go-grpc and it knows how to build the Golang code and put the resultant binary somewhere you can use later on.
I suppose this is potentially possible to create a WASM plugin in proto for this but I'm not 100% certain. In general, more first-class support for Golang would be amazing in moon and proto.
The text was updated successfully, but these errors were encountered:
This should be entirely doable with a WASM plugin, as you can run child processes and make file operations from it.
As for the Go requirement, you can either configure the plugin to require go from proto, or check that the Go binary exists.
I think the only thing proto can't handle 100% is ensuring that the $(go env GOPATH)/bin is in PATH. We do check for this automatically, but it's only inherited if the user is using proto activate.
We've adopted
moon
and, by virtue of that,proto
as our standard tooling for managing our toolchain and builds in our monorepo. We use protobuf and gRPC for many things and thus I'm looking for a solution to standardize theprotoc
dependency and the bindings for Golang. Protobuf is easy enough, we'll just need to create a custom plugin for protoc. The bindings portion is a bit more complicated.The gPRC bindings are installed using
go install
, in pointgo install
atgoogle.golang.org/grpc/cmd/protoc-gen-go-grpc
and it knows how to build the Golang code and put the resultant binary somewhere you can use later on.I suppose this is potentially possible to create a WASM plugin in proto for this but I'm not 100% certain. In general, more first-class support for Golang would be amazing in
moon
andproto
.The text was updated successfully, but these errors were encountered: