-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
protobuf: remove gogoproto #5342
base: master
Are you sure you want to change the base?
Conversation
e57b510
to
665e7c3
Compare
bf597a3
to
49259d7
Compare
9299af9
to
55e7f50
Compare
Remove gogoproto in favor of the standard protobuf compiler. This removes any nonstandard extensions that were part of gogoproto such as the custom types. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
vtproto is an extra protobuf compiler that generates special methods suffixed with `VT` that create typed and unrolled marshal and unmarshal functions similar to gogo that can be used for performance sensitive code. These extensions are optional for code to use but buildkit uses them. A codec is also included to utilize vtproto for grpc code. If the package `github.com/moby/buildkit/util/encoding/proto` is imported then vtproto will be used if it exists and otherwise it will use the standard marshaling and unmarshaling methods. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
55e7f50
to
63ab902
Compare
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
kernel.org/pub/linux/libs/security/libcap/psx v1.2.70 // indirect | ||
) | ||
|
||
replace github.com/tonistiigi/fsutil => github.com/jsternberg/fsutil v0.0.0-20240918154141-5822a7180d7a |
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.
TODO: change this before merging
This is ready for review now. This should replace #4422. I've separated the vtproto stuff into its own commit but the dependency seems to work and alleviates or removes the concern that this will affect the performance. |
Not sure why but I see freebsd job fails: https://github.com/moby/buildkit/actions/runs/10948325927/job/30399181953?pr=5342#step:10:12
And same happens on fsutil repo for tonistiigi/fsutil#206: https://github.com/tonistiigi/fsutil/actions/runs/10930826082/job/30344567135?pr=206 |
Remove gogoproto in favor of the standard protobuf compiler and use vtproto to supplement the standard protobuf compiler.
This removes any nonstandard extensions that were part of gogoproto such as the custom types.
vtproto is an extra protobuf compiler that generates special methods suffixed with
VT
that create typed and unrolled marshal and unmarshal functions similar to gogo that can be used for performance sensitive code. These extensions are optional for code to use but buildkit uses them.A codec is also included to utilize vtproto for grpc code. If the package
github.com/moby/buildkit/util/encoding/proto
is imported then vtproto will be used if it exists and otherwise it will use the standard marshaling and unmarshaling methods.