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

Commit

Permalink
Fix compiliation with upgraded Pulumi SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed Dec 2, 2022
1 parent 1a566fc commit bed3b04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/pulumi-resource-docker-buildkit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin"
"github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil"
rpc "github.com/pulumi/pulumi/sdk/v3/proto/go"
"google.golang.org/protobuf/types/known/emptypb"
)

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

func (p *dockerBuildkitProvider) Attach(context context.Context, req *rpc.PluginAttach) (*emptypb.Empty, error) {
host, err := provider.NewHostClient(req.GetAddress())
if err != nil {
return nil, err
}
p.host = host
return &pbempty.Empty{}, nil
}

func (k *dockerBuildkitProvider) Call(ctx context.Context, req *rpc.CallRequest) (*rpc.CallResponse, error) {
return nil, fmt.Errorf("Call is not yet implemented")
}
Expand Down

0 comments on commit bed3b04

Please sign in to comment.