From e88fbb6fa506f1129249f76a03c60e1ca5b9ed27 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Thu, 17 Jul 2025 23:16:00 +0200 Subject: [PATCH] chore: enable exptostd linter (#9086) Signed-off-by: Matthieu MOREL --- .golangci.yaml | 1 + go.mod | 2 +- test/util/velero/install.go | 2 +- test/util/velero/velero_utils.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 72711e99a..7ab8bdeaf 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -315,6 +315,7 @@ linters: - durationcheck - errcheck - errchkjson + - exptostd - ginkgolinter - goconst - goheader diff --git a/go.mod b/go.mod index e2719016d..bc40325a5 100644 --- a/go.mod +++ b/go.mod @@ -41,7 +41,6 @@ require ( github.com/stretchr/testify v1.10.0 github.com/vmware-tanzu/crash-diagnostics v0.3.7 go.uber.org/zap v1.27.0 - golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 golang.org/x/mod v0.24.0 golang.org/x/net v0.40.0 golang.org/x/oauth2 v0.30.0 @@ -182,6 +181,7 @@ require ( go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.38.0 // indirect + golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect golang.org/x/sync v0.14.0 // indirect golang.org/x/sys v0.33.0 // indirect golang.org/x/term v0.32.0 // indirect diff --git a/test/util/velero/install.go b/test/util/velero/install.go index 07e60a963..887bef479 100644 --- a/test/util/velero/install.go +++ b/test/util/velero/install.go @@ -23,11 +23,11 @@ import ( "fmt" "os" "os/exec" + "slices" "strings" "time" "github.com/pkg/errors" - "golang.org/x/exp/slices" "golang.org/x/mod/semver" appsv1api "k8s.io/api/apps/v1" corev1api "k8s.io/api/core/v1" diff --git a/test/util/velero/velero_utils.go b/test/util/velero/velero_utils.go index 48b6ffe69..abb9cdad6 100644 --- a/test/util/velero/velero_utils.go +++ b/test/util/velero/velero_utils.go @@ -32,11 +32,11 @@ import ( "reflect" "regexp" "runtime" + "slices" "strings" "time" "github.com/pkg/errors" - "golang.org/x/exp/slices" "golang.org/x/mod/semver" "k8s.io/apimachinery/pkg/labels" ver "k8s.io/apimachinery/pkg/util/version"