-
Notifications
You must be signed in to change notification settings - Fork 935
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 use of legacy protobuf library #9531
Comments
I tried to do so but couldn't as the |
I suspect we may need https://github.com/osrg/gobgp to take the first step and move away from ptypes, then we can do the same on our side. The rest of our protobuf usage was already updated to the new packages. |
Ah, got it. I'll open an issue with them to make that request. |
Closing as not actionable on our side currently. Also Go is complaining every time I update our gomod, so I already have a constant reminder of this ;) Once gobgp is fixed, our build will almost certainly start failing due to type mismatch, we'll then correct it and that will take care of it. |
gobgp has tagged a couple 3.0.0-rc releases that moves to the new protobuf library (osrg/gobgp#2485). I've verified from a very simple standpoint that LXD 4.21 compiles with changes made to |
Issue description
(I'll prefix this by saying I'm not very familiar with golang's protobuf libraries, although I've spent a good chunk of today learning about the legacy and new libraries....)
LXD is currently using both the legacy/deprecated (github.com/golang/protobuf) and new (github.com/protocolbuffers/protobuf-go) versions of the protobuf library. However, the legacy version is only used in one file (
lxd/bgp/server.go
), that's using the deprecatedptypes
library methods. (The upstream pull request has comments in the diff indicating switching to the new methods should be very easy.)Could you please remove LXD's use of the legacy protobuf library? That will help trim down its dependency tree, and prevent possible issues when mixing the old and new protobuf libraries.
(I initially found this issue in a library down in LXD's dependency tree while preparing to package it for Debian, but the same mixing of protobuf library versions exists in LXD.)
The text was updated successfully, but these errors were encountered: