make GrpcClient implement gateway.client.Client

Signed-off-by: Cory Bennett <cbennett@netflix.com>
v0.8
Cory Bennett 2020-09-13 20:39:59 +00:00
parent efb36aa53c
commit dc3d45de87
2 changed files with 2 additions and 3 deletions

View File

@ -51,9 +51,7 @@ func (c *Client) Build(ctx context.Context, opt SolveOpt, product string, buildF
return err return err
} }
if c, ok := g.(gateway.Client); ok { gwClient.caps = g.BuildOpts().Caps
gwClient.caps = c.BuildOpts().Caps
}
if err := g.Run(ctx, buildFunc); err != nil { if err := g.Run(ctx, buildFunc); err != nil {
return errors.Wrap(err, "failed to run Build function") return errors.Wrap(err, "failed to run Build function")

View File

@ -35,6 +35,7 @@ import (
const frontendPrefix = "BUILDKIT_FRONTEND_OPT_" const frontendPrefix = "BUILDKIT_FRONTEND_OPT_"
type GrpcClient interface { type GrpcClient interface {
client.Client
Run(context.Context, client.BuildFunc) error Run(context.Context, client.BuildFunc) error
} }