mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +08:00

Removes gogo/protobuf from buildx and updates to a version of moby/buildkit where gogo is removed. This also changes how the proto files are generated. This is because newer versions of protobuf are more strict about name conflicts. If two files have the same name (even if they are relative paths) and are used in different protoc commands, they'll conflict in the registry. Since protobuf file generation doesn't work very well with `paths=source_relative`, this removes the `go:generate` expression and just relies on the dockerfile to perform the generation. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
24 lines
659 B
Protocol Buffer
24 lines
659 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package moby.filesync.v1;
|
|
|
|
option go_package = "github.com/moby/buildkit/session/filesync";
|
|
|
|
import "github.com/tonistiigi/fsutil/types/wire.proto";
|
|
|
|
// FileSync exposes local files from the client to the server.
|
|
service FileSync{
|
|
rpc DiffCopy(stream fsutil.types.Packet) returns (stream fsutil.types.Packet);
|
|
rpc TarStream(stream fsutil.types.Packet) returns (stream fsutil.types.Packet);
|
|
}
|
|
|
|
// FileSend allows sending files from the server back to the client.
|
|
service FileSend{
|
|
rpc DiffCopy(stream BytesMessage) returns (stream BytesMessage);
|
|
}
|
|
|
|
// BytesMessage contains a chunk of byte data
|
|
message BytesMessage {
|
|
bytes data = 1;
|
|
}
|