Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail go get github.com/infobloxopen/protoc-gen-gorm with golang 1.13 #174

Open
xmlking opened this issue Sep 10, 2019 · 2 comments
Open

Comments

@xmlking
Copy link

xmlking commented Sep 10, 2019

go get github.com/infobloxopen/protoc-gen-gorm

 github.com/infobloxopen/protoc-gen-gorm/plugin
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/imports.go:114:16: cannot use dep (type string) as type generator.GoPackageName in argument to p.Generator.PrintImport
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/imports.go:114:16: cannot use dep (type string) as type generator.GoImportPath in argument to p.Generator.PrintImport
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/imports.go:123:16: cannot use a (type string) as type generator.GoPackageName in argument to p.Generator.PrintImport
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/imports.go:123:36: cannot use githubImports[a].packagePath (type string) as type generator.GoImportPath in argument to p.Generator.PrintImport
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/plugin.go:111:26: cannot use file.FileDescriptorProto (type *descriptor.FileDescriptorProto) as type string in argument to p.Generator.SetFile
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/plugin.go:149:13: p.FileOf undefined (type *OrmPlugin has no field or method FileOf)
go/src/github.com/infobloxopen/protoc-gen-gorm/plugin/plugin.go:187:13: p.FileOf undefined (type *OrmPlugin has no field or method FileOf)
@xmlking
Copy link
Author

xmlking commented Sep 10, 2019

try also

go get -d github.com/infobloxopen/protoc-gen-gorm
cd ~/go/src/github.com/infobloxopen/protoc-gen-gorm
make install

error

@Calebjh
Copy link
Contributor

Calebjh commented Sep 10, 2019

I think this is a symptom of the same issue as #98, I think. The Protobuf libraries (golang and gogo) make a big jump from v1.0.0 to v1.1.1 last year which deprecated a lot of functions used in this project. According to #98 (comment) doing a make vendor in the project repo can resolve some of the issues, but may also introduce other ones.

I'd love to fix this, but it looked like it would require some pretty significant refactoring when I probed into it last year.
There may also be a simple solution to make it install with the proper dependencies, but I've always found dependency resolution confusing, so my hopes aren't high that I would figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants