vendor: update buildkit to v0.20.0-rc2

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2025-02-13 16:54:50 -08:00
parent 6a6fa4f422
commit 1784f84561
8 changed files with 24 additions and 6 deletions

View File

@ -463,7 +463,7 @@ func init() {
Caps.Init(apicaps.Cap{
ID: CapRemoteCacheAzBlob,
Enabled: false,
Enabled: true,
Status: apicaps.CapStatusExperimental,
})

View File

@ -110,6 +110,20 @@ func (r *Result[T]) EachRef(fn func(T) error) (err error) {
return err
}
// IsEmpty returns true if this result does not refer to
// any references.
func (r *Result[T]) IsEmpty() bool {
r.mu.Lock()
defer r.mu.Unlock()
if len(r.Refs) > 0 {
return false
}
var zero T
return r.Ref == zero
}
// EachRef iterates over references in both a and b.
// a and b are assumed to be of the same size and map their references
// to the same set of keys