mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
protobuf: remove gogoproto
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>
This commit is contained in:
31
vendor/github.com/moby/buildkit/frontend/gateway/pb/gateway.proto
generated
vendored
31
vendor/github.com/moby/buildkit/frontend/gateway/pb/gateway.proto
generated
vendored
@ -2,17 +2,14 @@ syntax = "proto3";
|
||||
|
||||
package moby.buildkit.v1.frontend;
|
||||
|
||||
import "github.com/gogo/googleapis/google/rpc/status.proto";
|
||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
||||
option go_package = "github.com/moby/buildkit/frontend/gateway/pb;moby_buildkit_v1_frontend";
|
||||
|
||||
import "github.com/moby/buildkit/api/types/worker.proto";
|
||||
import "github.com/moby/buildkit/solver/pb/ops.proto";
|
||||
import "github.com/moby/buildkit/sourcepolicy/pb/policy.proto";
|
||||
import "github.com/moby/buildkit/util/apicaps/pb/caps.proto";
|
||||
import "github.com/tonistiigi/fsutil/types/stat.proto";
|
||||
|
||||
option (gogoproto.sizer_all) = true;
|
||||
option (gogoproto.marshaler_all) = true;
|
||||
option (gogoproto.unmarshaler_all) = true;
|
||||
import "google/rpc/status.proto";
|
||||
|
||||
service LLBBridge {
|
||||
// apicaps:CapResolveImage
|
||||
@ -84,22 +81,20 @@ message Attestation {
|
||||
}
|
||||
|
||||
enum AttestationKind {
|
||||
option (gogoproto.goproto_enum_prefix) = false;
|
||||
InToto = 0 [(gogoproto.enumvalue_customname) = "AttestationKindInToto"];
|
||||
Bundle = 1 [(gogoproto.enumvalue_customname) = "AttestationKindBundle"];
|
||||
InToto = 0;
|
||||
Bundle = 1;
|
||||
}
|
||||
|
||||
message InTotoSubject {
|
||||
InTotoSubjectKind kind = 1;
|
||||
|
||||
repeated string digest = 2 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
|
||||
repeated string digest = 2;
|
||||
string name = 3;
|
||||
}
|
||||
|
||||
enum InTotoSubjectKind {
|
||||
option (gogoproto.goproto_enum_prefix) = false;
|
||||
Self = 0 [(gogoproto.enumvalue_customname) = "InTotoSubjectKindSelf"];
|
||||
Raw = 1 [(gogoproto.enumvalue_customname) = "InTotoSubjectKindRaw"];
|
||||
Self = 0;
|
||||
Raw = 1;
|
||||
}
|
||||
|
||||
message ReturnRequest {
|
||||
@ -129,7 +124,7 @@ message ResolveImageConfigRequest {
|
||||
}
|
||||
|
||||
message ResolveImageConfigResponse {
|
||||
string Digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
|
||||
string Digest = 1;
|
||||
bytes Config = 2;
|
||||
string Ref = 3;
|
||||
}
|
||||
@ -148,7 +143,7 @@ message ResolveSourceMetaResponse {
|
||||
}
|
||||
|
||||
message ResolveSourceImageResponse {
|
||||
string Digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
|
||||
string Digest = 1;
|
||||
bytes Config = 2;
|
||||
}
|
||||
|
||||
@ -235,13 +230,13 @@ message EvaluateResponse {
|
||||
message PingRequest{
|
||||
}
|
||||
message PongResponse{
|
||||
repeated moby.buildkit.v1.apicaps.APICap FrontendAPICaps = 1 [(gogoproto.nullable) = false];
|
||||
repeated moby.buildkit.v1.apicaps.APICap LLBCaps = 2 [(gogoproto.nullable) = false];
|
||||
repeated moby.buildkit.v1.apicaps.APICap FrontendAPICaps = 1;
|
||||
repeated moby.buildkit.v1.apicaps.APICap LLBCaps = 2;
|
||||
repeated moby.buildkit.v1.types.WorkerRecord Workers = 3;
|
||||
}
|
||||
|
||||
message WarnRequest {
|
||||
string digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
|
||||
string digest = 1;
|
||||
int64 level = 2;
|
||||
bytes short = 3;
|
||||
repeated bytes detail = 4;
|
||||
|
Reference in New Issue
Block a user