mirror of
https://github.com/moby/buildkit.git
synced 2025-08-08 10:02:07 +03:00
apply x/tools/modernize fixes
Autogenerated with couple of manual patches. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ package containerimage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"slices"
|
||||
"strconv"
|
||||
|
||||
"github.com/containerd/containerd/v2/core/content"
|
||||
@@ -217,7 +218,7 @@ func (is *Source) registryIdentifier(ref string, attrs map[string]string, platfo
|
||||
OSVersion: platform.OSVersion,
|
||||
}
|
||||
if platform.OSFeatures != nil {
|
||||
id.Platform.OSFeatures = append([]string{}, platform.OSFeatures...)
|
||||
id.Platform.OSFeatures = slices.Clone(platform.OSFeatures)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -264,7 +265,7 @@ func (is *Source) ociIdentifier(ref string, attrs map[string]string, platform *p
|
||||
OSVersion: platform.OSVersion,
|
||||
}
|
||||
if platform.OSFeatures != nil {
|
||||
id.Platform.OSFeatures = append([]string{}, platform.OSFeatures...)
|
||||
id.Platform.OSFeatures = slices.Clone(platform.OSFeatures)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user