Remove google.golang.org/protobuf dependency from model & storage APIs#4917
Conversation
Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 2 files with indirect coverage changes 📢 Thoughts on this report? Let us know! |
|
Hi @akagami-harsh , |
|
@akagami-harsh , |
Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
944c342 to
ac08908
Compare
ba42fef to
d337876
Compare
how can i do that? |
|
I don't think we need to bump idl sub module because the schemas have not changed. How are you regenerating the types? You need to bump the version of the proto image in the Makefile first. |
Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
As a newcomer to protocol buffers, I've attempted to regenerate it manually using |
|
please use the make target to generate types, not some manual method |
|
used after altering the |
|
I see that the old package is still imported in only one file grep -rn "github.com/golang/protobuf/proto" .
./proto-gen/api_v3/query_service.pb.gw.go:17: "github.com/golang/protobuf/proto"And that file is generated by |
|
https://github.com/grpc-ecosystem/grpc-gateway - latest version is 2.18, but our Docker file is using |
|
Hi @yurishkuro , While consulting grpc-gateway, I saw that they are using buf . Do you know this ? Would it be a good idea to use it instead of docker-protobuf or adapt docker-protobuf to rely on it ? |
|
Is there an issue with bumping Go version? Alternatively, can we do a smaller bump of gateway, enough to remove the old dep but not to the latest version? I don't have enough data about buf. As I mentioned, otlp is using gogo currently. |
|
Taking a more recent version than go 1.17.3 in docker-protobuf will require to upgrade alpine version then it leads to upgrade grpc which is failing then |
|
but we're on the latest grpc version in the main repo, why would that one fail? Also, how much of a dependency is between alpine and grpc? |
|
I mean the grpc version in the dockerfile of docker-protobuf. In dockerfile of docker-protobuf. There is a use of golang:golang:${GO_VERSION}-alpine${ALPINE_VERSION} but not every couple of go and alpine version. |
|
I think it's worth trying to upgrade everything. |
|
We may want to add a dependabot to that repo - although not sure it will work on a shell script with variables |
yurishkuro
left a comment
There was a problem hiding this comment.
I am going to merge this, as it's an incremental improvement for the primary code paths.
Which problem is this PR solving?
Description of the changes
google.golang.org/protobufin place ofgithub.tiyicn.workers.dev/golang/protobufgithub.tiyicn.workers.dev/golang/protobufis not completely removed it is still being used as an indirect dependencyHow was this change tested?
make testChecklist
jaeger:make lint testjaeger-ui:yarn lintandyarn test