Backend: Downgrade protobuf from v1.4.0 to v1.3.5

Error: invalid type: got uint64, want pointer
Stack trace:
github.com/pingcap/tidb/store/tikv.(*copIteratorWorker).handleTask.func1
	/go/pkg/mod/github.com/pingcap/tidb@v2.1.11+incompatible/store/tikv/coprocessor.go:616
runtime.gopanic
	/usr/local/go/src/runtime/panic.go:969
google.golang.org/protobuf/internal/impl.fieldInfoForScalar
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/internal/impl/message_reflect_field.go:228
google.golang.org/protobuf/internal/impl.(*MessageInfo).makeKnownFieldsFunc
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/internal/impl/message_reflect.go:67
google.golang.org/protobuf/internal/impl.(*MessageInfo).makeReflectFuncs
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/internal/impl/message_reflect.go:36
google.golang.org/protobuf/internal/impl.(*MessageInfo).initOnce
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/internal/impl/message.go:91
google.golang.org/protobuf/internal/impl.(*MessageInfo).init
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/internal/impl/message.go:73
google.golang.org/protobuf/internal/impl.(*messageReflectWrapper).ProtoMethods
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/internal/impl/message_reflect_gen.go:150
google.golang.org/protobuf/proto.protoMethods
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/proto/proto_methods.go:18
google.golang.org/protobuf/proto.UnmarshalOptions.unmarshal
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/proto/decode.go:76
google.golang.org/protobuf/proto.UnmarshalOptions.UnmarshalState
	/go/pkg/mod/google.golang.org/protobuf@v1.21.0/proto/decode.go:63
github.com/golang/protobuf/proto.UnmarshalMerge
	/go/pkg/mod/github.com/golang/protobuf@v1.4.0/proto/wire.go:67
github.com/golang/protobuf/proto.Unmarshal

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-05-01 14:05:55 +02:00
parent 59f1c0d786
commit 743b2dc348

2
go.mod
View file

@ -20,7 +20,7 @@ require (
github.com/gin-gonic/gin v1.6.2
github.com/go-errors/errors v1.0.2 // indirect
github.com/golang/geo v0.0.0-20200319012246-673a6f80352d
github.com/golang/protobuf v1.4.0 // indirect
github.com/golang/protobuf v1.3.5 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/google/open-location-code/go v0.0.0-20191230190541-a6eb95b4d2f9
github.com/gorilla/websocket v1.4.2