mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
vendor: bump to buildah ca578b290144 and use new cache API
Bump to buildah ca578b290144 and use new `cacheTo` and `cacheFrom` API. [NO NEW TESTS NEEDED] [NO TESTS NEEDED] Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
11
vendor/github.com/containers/buildah/util/util.go
generated
vendored
11
vendor/github.com/containers/buildah/util/util.go
generated
vendored
@@ -441,7 +441,14 @@ func (m byDestination) Len() int {
|
||||
}
|
||||
|
||||
func (m byDestination) Less(i, j int) bool {
|
||||
return m.parts(i) < m.parts(j)
|
||||
iparts, jparts := m.parts(i), m.parts(j)
|
||||
switch {
|
||||
case iparts < jparts:
|
||||
return true
|
||||
case iparts > jparts:
|
||||
return false
|
||||
}
|
||||
return filepath.Clean(m[i].Destination) < filepath.Clean(m[j].Destination)
|
||||
}
|
||||
|
||||
func (m byDestination) Swap(i, j int) {
|
||||
@@ -453,7 +460,7 @@ func (m byDestination) parts(i int) int {
|
||||
}
|
||||
|
||||
func SortMounts(m []specs.Mount) []specs.Mount {
|
||||
sort.Sort(byDestination(m))
|
||||
sort.Stable(byDestination(m))
|
||||
return m
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user