description
tegola still depends on github.com/golang/protobuf/proto, which has been deprecated in favor of google.golang.org/protobuf/proto.
Swapping the import alone doesn't work because the generated .pb.go types (e.g. vector_tile.Tile of go-spatial/geom) were produced by the old protoc-gen-go and only satisfy the old proto.Message interface. The new runtime expects protoreflect.ProtoMessage, which requires a ProtoReflect() method these types don't have.
- regenerate
.pb.go files using protoc-gen-go from google.golang.org/protobuf/cmd/protoc-gen-go in go-spatial/geom
- replace all imports of github.com/golang/protobuf/proto with google.golang.org/protobuf/proto.
- possibly fix any call-site breakage from differences in the generated code
description
tegola still depends on
github.com/golang/protobuf/proto, which has been deprecated in favor ofgoogle.golang.org/protobuf/proto.Swapping the import alone doesn't work because the generated
.pb.gotypes (e.g.vector_tile.Tileof go-spatial/geom) were produced by the oldprotoc-gen-goand only satisfy the oldproto.Messageinterface. The new runtime expectsprotoreflect.ProtoMessage, which requires aProtoReflect()method these types don't have..pb.gofiles usingprotoc-gen-gofrom google.golang.org/protobuf/cmd/protoc-gen-go ingo-spatial/geom