mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to v0.20.0-rc2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
2
vendor/github.com/moby/buildkit/solver/pb/caps.go
generated
vendored
2
vendor/github.com/moby/buildkit/solver/pb/caps.go
generated
vendored
@ -463,7 +463,7 @@ func init() {
|
||||
|
||||
Caps.Init(apicaps.Cap{
|
||||
ID: CapRemoteCacheAzBlob,
|
||||
Enabled: false,
|
||||
Enabled: true,
|
||||
Status: apicaps.CapStatusExperimental,
|
||||
})
|
||||
|
||||
|
14
vendor/github.com/moby/buildkit/solver/result/result.go
generated
vendored
14
vendor/github.com/moby/buildkit/solver/result/result.go
generated
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user