mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to 8effd45b
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
7
vendor/github.com/moby/buildkit/util/apicaps/caps.go
generated
vendored
7
vendor/github.com/moby/buildkit/util/apicaps/caps.go
generated
vendored
@ -122,6 +122,13 @@ func (s *CapSet) Supports(id CapID) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Contains checks if cap set contains cap. Note that unlike Supports() this
|
||||
// function only checks capability existence in remote set, not if cap has been initialized.
|
||||
func (s *CapSet) Contains(id CapID) bool {
|
||||
_, ok := s.set[string(id)]
|
||||
return ok
|
||||
}
|
||||
|
||||
// CapError is an error for unsupported capability
|
||||
type CapError struct {
|
||||
ID CapID
|
||||
|
5
vendor/github.com/moby/buildkit/util/apicaps/pb/caps.pb.go
generated
vendored
5
vendor/github.com/moby/buildkit/util/apicaps/pb/caps.pb.go
generated
vendored
@ -465,10 +465,7 @@ func (m *APICap) Unmarshal(dAtA []byte) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthCaps
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||
return ErrInvalidLengthCaps
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
|
Reference in New Issue
Block a user