Skip to content
This repository was archived by the owner on Mar 11, 2023. It is now read-only.

Commit bed3b04

Browse files
committed
Fix compiliation with upgraded Pulumi SDK
1 parent 1a566fc commit bed3b04

File tree

1 file changed

+10
-0
lines changed
  • cmd/pulumi-resource-docker-buildkit

1 file changed

+10
-0
lines changed

cmd/pulumi-resource-docker-buildkit/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import (
3838
"github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin"
3939
"github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil"
4040
rpc "github.com/pulumi/pulumi/sdk/v3/proto/go"
41+
"google.golang.org/protobuf/types/known/emptypb"
4142
)
4243

4344
// Injected by linker in release builds.
@@ -59,6 +60,15 @@ type dockerBuildkitProvider struct {
5960
loginLock sync.Mutex
6061
}
6162

63+
func (p *dockerBuildkitProvider) Attach(context context.Context, req *rpc.PluginAttach) (*emptypb.Empty, error) {
64+
host, err := provider.NewHostClient(req.GetAddress())
65+
if err != nil {
66+
return nil, err
67+
}
68+
p.host = host
69+
return &pbempty.Empty{}, nil
70+
}
71+
6272
func (k *dockerBuildkitProvider) Call(ctx context.Context, req *rpc.CallRequest) (*rpc.CallResponse, error) {
6373
return nil, fmt.Errorf("Call is not yet implemented")
6474
}

0 commit comments

Comments
 (0)