mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to 93b40706a007
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
20
vendor/github.com/moby/buildkit/frontend/gateway/grpcclient/client.go
generated
vendored
20
vendor/github.com/moby/buildkit/frontend/gateway/grpcclient/client.go
generated
vendored
@ -161,7 +161,7 @@ func (c *grpcClient) Run(ctx context.Context, f client.BuildFunc) (retError erro
|
||||
}
|
||||
}
|
||||
|
||||
if res.Attestations != nil && c.caps.Supports(pb.CapAttestations) == nil {
|
||||
if res.Attestations != nil {
|
||||
attestations := map[string]*pb.Attestations{}
|
||||
for k, as := range res.Attestations {
|
||||
for _, a := range as {
|
||||
@ -170,6 +170,12 @@ func (c *grpcClient) Run(ctx context.Context, f client.BuildFunc) (retError erro
|
||||
retError = err
|
||||
continue
|
||||
}
|
||||
pbRef, err := convertRef(a.Ref)
|
||||
if err != nil {
|
||||
retError = err
|
||||
continue
|
||||
}
|
||||
pbAtt.Ref = pbRef
|
||||
if attestations[k] == nil {
|
||||
attestations[k] = &pb.Attestations{}
|
||||
}
|
||||
@ -451,11 +457,18 @@ func (c *grpcClient) Solve(ctx context.Context, creq client.SolveRequest) (res *
|
||||
if resp.Result.Attestations != nil {
|
||||
for p, as := range resp.Result.Attestations {
|
||||
for _, a := range as.Attestation {
|
||||
att, err := client.AttestationFromPB(a)
|
||||
att, err := client.AttestationFromPB[client.Reference](a)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res.AddAttestation(p, *att, nil)
|
||||
if a.Ref.Id != "" {
|
||||
ref, err := newReference(c, a.Ref)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
att.Ref = ref
|
||||
}
|
||||
res.AddAttestation(p, *att)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -809,6 +822,7 @@ func (ctr *container) Start(ctx context.Context, req client.StartRequest) (clien
|
||||
Tty: req.Tty,
|
||||
Security: req.SecurityMode,
|
||||
}
|
||||
init.Meta.RemoveMountStubsRecursive = req.RemoveMountStubsRecursive
|
||||
if req.Stdin != nil {
|
||||
init.Fds = append(init.Fds, 0)
|
||||
}
|
||||
|
Reference in New Issue
Block a user