Giter Club home page Giter Club logo

Comments (9)

nof20 avatar nof20 commented on August 16, 2024 1

+1, I had this problem too. cd $GOPATH/src/github.com/infobloxopen/protoc-gen-gorm && make vendor && make install fixed them for me... now working through the rest of the problems.

from protoc-gen-gorm.

Calebjh avatar Calebjh commented on August 16, 2024

Hello!

I haven't seen this myself, could you tell me what the output is when you do this:
cd into $GOPATH/src/github.com/gogo/protobuf and run git describe --tags
I'm not sure, and will have to look into it, but it sounds like we may be working with a different version of protoc-gen-gogo

from protoc-gen-gorm.

Calebjh avatar Calebjh commented on August 16, 2024

Looks like changes were made to the gogo/protobuf interface recently in gogo/protobuf#424. In the meantime, go install will only work if you have an older version of gogo/protobuf already installed, or clone protoc-gen-gorm directly and use the dep file which will pull an older version of gogo/protobuf as a dependency.

from protoc-gen-gorm.

ramnallu avatar ramnallu commented on August 16, 2024

git describe --tags

v1.1.1

from protoc-gen-gorm.

Calebjh avatar Calebjh commented on August 16, 2024

Hey, just wanted to circle back on this. That's what I expected, gogo/protobuf made those API changes with v1.1.1, while this project has been working with the older v1.0.0. I would definitely like to resolve these, and see what improvements could be made with v1.1.1 but I don't think we have capacity right now.

As a workaround, you may be able to cd into $GOPATH/src/github.com/infobloxopen/protoc-gen-gorm and do a make vendor, but probably can't include it in a project with a dependency gogo/protobuf v1.1.1?

from protoc-gen-gorm.

mythfish avatar mythfish commented on August 16, 2024

+1

from protoc-gen-gorm.

joeyorlando avatar joeyorlando commented on August 16, 2024

go get github.com/golang/[email protected] did the trick for me.. (using go v1.13 with go modules)

from protoc-gen-gorm.

daodennis avatar daodennis commented on August 16, 2024

Instead of running:
make -C ${GOPATH}/src/github.com/infobloxopen/protoc-gen-gorm vendor
make -C ${GOPATH}/src/github.com/infobloxopen/protoc-gen-gorm install

I was looking at https://github.com/infobloxopen/atlas-gentool/blob/294689e64b9dbf07f2ed4eb7ac82af85604eacce/Dockerfile#L82-L84 and noticed they do something not mentioned here:

RUN go install  \
      -ldflags "-X github.com/infobloxopen/protoc-gen-gorm/plugin.ProtocGenGormVersion=$PGG_VERSION -X github.com/infobloxopen/protoc-gen-gorm/plugin.AtlasAppToolkitVersion=$AAT_VERSION" \
      github.com/infobloxopen/protoc-gen-gorm

Are these linker flags relevant? Does github.com/infobloxopen/atlas-gentool's Makefile build protoc-gen-gorm with out the issues described in this issue curretly?

from protoc-gen-gorm.

yogeshg8237 avatar yogeshg8237 commented on August 16, 2024

+1

from protoc-gen-gorm.

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.