protoc-gen-map icon indicating copy to clipboard operation
protoc-gen-map copied to clipboard

protoc-gen-go/generator is deprecated

Open hblok opened this issue 4 years ago • 2 comments

When executing the binary "go/bin/protoc-gen-map", there is a warning about "protoc-gen-go/generator" to be deprecated:

WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated.
	A future release of golang/protobuf will delete this package,
	which has long been excluded from the compatibility promise.

Is there an updated or replacement package for this? Is there a plan to fix this in the near future?

Thanks, H

hblok avatar Jun 19 '20 09:06 hblok

this also concerned me a bit.

elmgone avatar Jun 26 '20 13:06 elmgone

I am aware of this change, the generator has moved to the protogen package. Many projects which depended on the generator have this issue (gateway, argo). I am currently refactoring protoc gen map to use carta. this will be available in next release. However, with the deprecation of protoc-gen-go and addition of the protoreflect package, I believe I will tackle this issue in the following release.

jackskj avatar Jul 07 '20 22:07 jackskj