Git Product home page Git Product logo

Comments (4)

samuelvarley avatar samuelvarley commented on August 29, 2024

I also came across this. The problem is that the autogenerated files are not being regenerated when you run "go get ..."; instead, it's using the files that have been checked into git. Those autogenerated files are now out of date with some other packages and it's triggering a compile-time assertion.

The instructions below assume that you are on Linux and have the $GOPATH environment variable set. You may need to do things slightly differently with other setups.

To regenerate the files, "cd" into "echopb" and type "make". You may find that you need to install some extra dependencies before that will work.

go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go

Those will produce some executables such as "protoc-gen-go". Make sure that the location of those exectables is in your $PATH environment variable. Use the following command:

export PATH=$PATH:$GOPATH/bin

You will also need "protoc" which you can download from https://github.com/google/protobuf/releases

  • Copy "bin/protoc" to somewhere in your $PATH.
  • Copy the "include/google" directory into "$GOPATH/src".

With all the dependencies now installed, "make" should work without producing any errors. Once you have run "make", the original "go get ..." command should run without problems.

from grpc-gateway-example.

philips avatar philips commented on August 29, 2024

@samuelvarley can you submit a PR to bump the compiled assests?

from grpc-gateway-example.

samuelvarley avatar samuelvarley commented on August 29, 2024

OK, I have made PR #13.

from grpc-gateway-example.

philips avatar philips commented on August 29, 2024

Merged. This should be fixed now.

from grpc-gateway-example.

Related Issues (18)

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.