-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove google.golang.org/protobuf dependency from model & storage APIs #4917
Remove google.golang.org/protobuf dependency from model & storage APIs #4917
Conversation
Signed-off-by: Harshvir Potpose <[email protected]>
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 <[email protected]>
944c342
to
ac08908
Compare
Signed-off-by: Harshvir Potpose <[email protected]>
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 <[email protected]>
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 |
Signed-off-by: Harshvir Potpose <[email protected]>
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/protobuf
in place ofgithub.com/golang/protobuf
github.com/golang/protobuf
is not completely removed it is still being used as an indirect dependencyHow was this change tested?
make test
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test