diff options
author | Paul Holzinger <pholzing@redhat.com> | 2024-04-23 11:16:40 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2024-04-23 11:16:40 +0200 |
commit | 83dbbc3a512e5fc3d854acb589e1fd4c3a2b9acc (patch) | |
tree | 05235ba311ed935578f96fa9629ea72c62efc80a /cmd | |
parent | c04d03ef8cbdafda920582c2055c4f3377e0d994 (diff) |
Replace golang.org/x/exp/slices with slices from std
Use "slices" from the standard library, this package was added in go
1.21 so we can use it now.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/containers/create.go | 2 | ||||
-rw-r--r-- | cmd/podman/containers/ps.go | 2 | ||||
-rw-r--r-- | cmd/podman/farm/create.go | 2 | ||||
-rw-r--r-- | cmd/podman/farm/update.go | 2 | ||||
-rw-r--r-- | cmd/podman/images/save.go | 2 | ||||
-rw-r--r-- | cmd/podman/images/trust_set.go | 2 | ||||
-rw-r--r-- | cmd/podman/system/connection/list.go | 2 | ||||
-rw-r--r-- | cmd/podman/system/connection/remove.go | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/cmd/podman/containers/create.go b/cmd/podman/containers/create.go index 48eace09e..5edeb2afa 100644 --- a/cmd/podman/containers/create.go +++ b/cmd/podman/containers/create.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "os" + "slices" "strconv" "strings" @@ -23,7 +24,6 @@ import ( "github.com/containers/podman/v5/pkg/util" "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "golang.org/x/exp/slices" "golang.org/x/term" ) diff --git a/cmd/podman/containers/ps.go b/cmd/podman/containers/ps.go index 5741288eb..c247adf68 100644 --- a/cmd/podman/containers/ps.go +++ b/cmd/podman/containers/ps.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" "os" + "slices" "strconv" "strings" "time" @@ -20,7 +21,6 @@ import ( "github.com/docker/go-units" "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "golang.org/x/exp/slices" ) var ( diff --git a/cmd/podman/farm/create.go b/cmd/podman/farm/create.go index 6e7c49379..a0171c860 100644 --- a/cmd/podman/farm/create.go +++ b/cmd/podman/farm/create.go @@ -2,13 +2,13 @@ package farm import ( "fmt" + "slices" "github.com/containers/common/pkg/completion" "github.com/containers/common/pkg/config" "github.com/containers/podman/v5/cmd/podman/registry" "github.com/containers/podman/v5/cmd/podman/validate" "github.com/spf13/cobra" - "golang.org/x/exp/slices" ) var ( diff --git a/cmd/podman/farm/update.go b/cmd/podman/farm/update.go index aecdf00ae..66ced176c 100644 --- a/cmd/podman/farm/update.go +++ b/cmd/podman/farm/update.go @@ -3,6 +3,7 @@ package farm import ( "errors" "fmt" + "slices" "github.com/containers/common/pkg/completion" "github.com/containers/common/pkg/config" @@ -10,7 +11,6 @@ import ( "github.com/containers/podman/v5/cmd/podman/registry" "github.com/containers/podman/v5/cmd/podman/validate" "github.com/spf13/cobra" - "golang.org/x/exp/slices" ) var ( diff --git a/cmd/podman/images/save.go b/cmd/podman/images/save.go index 529b05053..9124fc43c 100644 --- a/cmd/podman/images/save.go +++ b/cmd/podman/images/save.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "os" + "slices" "strings" "github.com/containers/common/pkg/completion" @@ -14,7 +15,6 @@ import ( "github.com/containers/podman/v5/libpod/define" "github.com/containers/podman/v5/pkg/domain/entities" "github.com/spf13/cobra" - "golang.org/x/exp/slices" "golang.org/x/term" ) diff --git a/cmd/podman/images/trust_set.go b/cmd/podman/images/trust_set.go index a7acf2112..67ae1d32e 100644 --- a/cmd/podman/images/trust_set.go +++ b/cmd/podman/images/trust_set.go @@ -4,13 +4,13 @@ import ( "fmt" "net/url" "regexp" + "slices" "github.com/containers/common/pkg/completion" "github.com/containers/podman/v5/cmd/podman/common" "github.com/containers/podman/v5/cmd/podman/registry" "github.com/containers/podman/v5/pkg/domain/entities" "github.com/spf13/cobra" - "golang.org/x/exp/slices" ) var ( diff --git a/cmd/podman/system/connection/list.go b/cmd/podman/system/connection/list.go index 75dd8846d..24e6b29d2 100644 --- a/cmd/podman/system/connection/list.go +++ b/cmd/podman/system/connection/list.go @@ -3,6 +3,7 @@ package connection import ( "fmt" "os" + "slices" "sort" "github.com/containers/common/pkg/completion" @@ -13,7 +14,6 @@ import ( "github.com/containers/podman/v5/cmd/podman/system" "github.com/containers/podman/v5/cmd/podman/validate" "github.com/spf13/cobra" - "golang.org/x/exp/slices" ) var ( diff --git a/cmd/podman/system/connection/remove.go b/cmd/podman/system/connection/remove.go index 75975b9a0..225b1f038 100644 --- a/cmd/podman/system/connection/remove.go +++ b/cmd/podman/system/connection/remove.go @@ -2,13 +2,13 @@ package connection import ( "errors" + "slices" "github.com/containers/common/pkg/config" "github.com/containers/podman/v5/cmd/podman/common" "github.com/containers/podman/v5/cmd/podman/registry" "github.com/containers/podman/v5/cmd/podman/system" "github.com/spf13/cobra" - "golang.org/x/exp/slices" ) var ( |