Comments (9)
+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.
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.
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.
git describe --tags
v1.1.1
from protoc-gen-gorm.
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.
+1
from protoc-gen-gorm.
go get github.com/golang/[email protected]
did the trick for me.. (using go v1.13 with go modules)
from protoc-gen-gorm.
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.
+1
from protoc-gen-gorm.
Related Issues (20)
- Regression in GormTag index and unique_index handling
- The latest release seems to be generating duplicate parts of code.
- bytes protobuf type gives unhelpful segfault HOT 3
- Using the actual Gorm package HOT 2
- get "protoc-gen-gogo: error:inconsistent package import paths" errors
- get "undefined: xxx" errors
- Google's timestamppb only imported for side effects in generated file.
- support "optional" fields in protoc3 HOT 2
- panic: runtime error: invalid memory address or nil pointer dereference HOT 9
- protoc-gen-gorm 1.1.0 produces "unique index" GORM tags that are silently ignored
- index tag should be a repeated field
- serializer tag
- Why is google.protobuf.Timestamp-time.Duration not supported ?
- How to map the tag ``gorm:"column:id;primaryKey;auto"`` to `[(gorm.field) = { ... }]`
- 请教下,是否支持复杂的类型 HOT 1
- Patch logic maybe not work for the message that contains a enum?
- gorm v2 and gorm v1 HOT 5
- Can you make examples not relative to this repo HOT 2
- 输出的import报错
- /map.proto: is a proto3 file that contains optional fields, but code generator protoc-gen-gorm hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.--gorm_out: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protoc-gen-gorm.