Coder Social home page Coder Social logo

Comments (5)

dsymonds avatar dsymonds commented on July 19, 2024

You shouldn't need to do that explicitly unless you're going to be generating protos. Just using this package does not require that.

from grpc-go.

gainward avatar gainward commented on July 19, 2024

You mean generating code from protos, right? I was running through a quick example and had things blow up when I tried:

$ protoc --go_out=plugins=grpc:. todo.proto 
protoc-gen-go: program not found or is not executable
--go_out: protoc-gen-go: Plugin failed with status code 1.

from grpc-go.

dsymonds avatar dsymonds commented on July 19, 2024

Yes, that's what I mean. The generated output should be checked in so you don't have to run protoc unless you're modifying it.

from grpc-go.

iamqizhao avatar iamqizhao commented on July 19, 2024

To be clear,

github.com/golang/protobuf/proto is needed because we have imported "github.com/golang/protobuf/proto" for encoding and decoding. But it has been installed automatically when you run "go get google.golang.org/grpc".

github.com/golang/protobuf/proto-gen-go is not required to use grpc package. It is needed when you want to generate code from proto file.

from grpc-go.

gainward avatar gainward commented on July 19, 2024

Okay, that's fair. I hadn't noticed the language subdirs in grpc-common and was expecting detailed generation instructions in here.

This is just more of a user flow issue, then, and I'm happy to close it.

from grpc-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.