From 49ba503590c9cfdc74d75055286b50eb7d708375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Thu, 21 Mar 2024 22:02:48 +0100 Subject: [PATCH] Use "slices" from the standard library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not "maps" because maps.Keys is not included. Should not change behavior. Signed-off-by: Miloslav Trmač --- cmd/skopeo/sync.go | 2 +- cmd/skopeo/unshare_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/skopeo/sync.go b/cmd/skopeo/sync.go index 77f22264..a5639f5b 100644 --- a/cmd/skopeo/sync.go +++ b/cmd/skopeo/sync.go @@ -10,6 +10,7 @@ import ( "path" "path/filepath" "regexp" + "slices" "strings" "github.com/Masterminds/semver/v3" @@ -27,7 +28,6 @@ import ( "github.com/opencontainers/go-digest" "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "golang.org/x/exp/slices" "gopkg.in/yaml.v3" ) diff --git a/cmd/skopeo/unshare_linux.go b/cmd/skopeo/unshare_linux.go index 6778a029..e39a99c6 100644 --- a/cmd/skopeo/unshare_linux.go +++ b/cmd/skopeo/unshare_linux.go @@ -2,11 +2,11 @@ package main import ( "fmt" + "slices" "github.com/containers/image/v5/transports/alltransports" "github.com/containers/storage/pkg/unshare" "github.com/syndtr/gocapability/capability" - "golang.org/x/exp/slices" ) var neededCapabilities = []capability.Cap{