Skip to content

Commit 8088246

Browse files
committed
Remove gogo
Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 650db49 commit 8088246

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

frontend/gateway/gateway.go

-18
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import (
1717
"github.com/containerd/containerd/mount"
1818
"github.com/distribution/reference"
1919
"github.com/docker/docker/pkg/idtools"
20-
gogotypes "github.com/gogo/protobuf/types"
21-
"github.com/golang/protobuf/ptypes/any"
2220
apitypes "github.com/moby/buildkit/api/types"
2321
"github.com/moby/buildkit/cache"
2422
cacheutil "github.com/moby/buildkit/cache/util"
@@ -1516,22 +1514,6 @@ func (*markTypeFrontend) SetImageOption(ii *llb.ImageInfo) {
15161514
ii.RecordType = string(client.UsageRecordTypeFrontend)
15171515
}
15181516

1519-
func convertGogoAny(in []*gogotypes.Any) []*any.Any {
1520-
out := make([]*any.Any, len(in))
1521-
for i := range in {
1522-
out[i] = &any.Any{TypeUrl: in[i].TypeUrl, Value: in[i].Value}
1523-
}
1524-
return out
1525-
}
1526-
1527-
func convertToGogoAny(in []*any.Any) []*gogotypes.Any {
1528-
out := make([]*gogotypes.Any, len(in))
1529-
for i := range in {
1530-
out[i] = &gogotypes.Any{TypeUrl: in[i].TypeUrl, Value: in[i].Value}
1531-
}
1532-
return out
1533-
}
1534-
15351517
func getCaps(label string) map[string]struct{} {
15361518
if label == "" {
15371519
return make(map[string]struct{})

frontend/gateway/grpcclient/client.go

-18
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import (
1212
"syscall"
1313
"time"
1414

15-
gogotypes "github.com/gogo/protobuf/types"
16-
"github.com/golang/protobuf/ptypes/any"
1715
"github.com/moby/buildkit/client/llb"
1816
"github.com/moby/buildkit/frontend/gateway/client"
1917
pb "github.com/moby/buildkit/frontend/gateway/pb"
@@ -1228,19 +1226,3 @@ func workers() []client.WorkerInfo {
12281226
func product() string {
12291227
return os.Getenv("BUILDKIT_EXPORTEDPRODUCT")
12301228
}
1231-
1232-
func convertGogoAny(in []*gogotypes.Any) []*any.Any {
1233-
out := make([]*any.Any, len(in))
1234-
for i := range in {
1235-
out[i] = &any.Any{TypeUrl: in[i].TypeUrl, Value: in[i].Value}
1236-
}
1237-
return out
1238-
}
1239-
1240-
func convertToGogoAny(in []*any.Any) []*gogotypes.Any {
1241-
out := make([]*gogotypes.Any, len(in))
1242-
for i := range in {
1243-
out[i] = &gogotypes.Any{TypeUrl: in[i].TypeUrl, Value: in[i].Value}
1244-
}
1245-
return out
1246-
}

0 commit comments

Comments
 (0)