Skip to content

Commit 7688579

Browse files
authored
Merge pull request #9423 from Lyndon-Li/fix-linter-error
Fix linter error
2 parents 3fc33d3 + e63486b commit 7688579

39 files changed

+76
-39
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ require (
4242
github.com/vmware-tanzu/crash-diagnostics v0.3.7
4343
go.uber.org/zap v1.27.0
4444
golang.org/x/mod v0.29.0
45-
golang.org/x/net v0.47.0
4645
golang.org/x/oauth2 v0.30.0
4746
golang.org/x/text v0.31.0
4847
google.golang.org/api v0.241.0
@@ -182,6 +181,7 @@ require (
182181
go.uber.org/multierr v1.11.0 // indirect
183182
golang.org/x/crypto v0.45.0 // indirect
184183
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
184+
golang.org/x/net v0.47.0 // indirect
185185
golang.org/x/sync v0.18.0 // indirect
186186
golang.org/x/sys v0.38.0 // indirect
187187
golang.org/x/term v0.37.0 // indirect

pkg/plugin/framework/backup_item_action.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ limitations under the License.
1717
package framework
1818

1919
import (
20+
"context"
21+
2022
plugin "github.com/hashicorp/go-plugin"
21-
"golang.org/x/net/context"
2223
"google.golang.org/grpc"
2324

2425
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"

pkg/plugin/framework/backup_item_action_client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ package framework
1919
import (
2020
"encoding/json"
2121

22+
"context"
23+
2224
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2425
"google.golang.org/grpc"
2526
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2627
"k8s.io/apimachinery/pkg/runtime"

pkg/plugin/framework/backup_item_action_server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ package framework
1919
import (
2020
"encoding/json"
2121

22+
"context"
23+
2224
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2425
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2526

2627
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"

pkg/plugin/framework/backupitemaction/v2/backup_item_action.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ limitations under the License.
1717
package v2
1818

1919
import (
20+
"context"
21+
2022
plugin "github.com/hashicorp/go-plugin"
21-
"golang.org/x/net/context"
2223
"google.golang.org/grpc"
2324

2425
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"

pkg/plugin/framework/backupitemaction/v2/backup_item_action_client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ package v2
1919
import (
2020
"encoding/json"
2121

22+
"context"
23+
2224
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2425
"google.golang.org/grpc"
2526
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2627
"k8s.io/apimachinery/pkg/runtime"

pkg/plugin/framework/backupitemaction/v2/backup_item_action_server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ package v2
1919
import (
2020
"encoding/json"
2121

22+
"context"
23+
2224
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2425
"google.golang.org/protobuf/types/known/emptypb"
2526
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2627

pkg/plugin/framework/delete_item_action.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ limitations under the License.
1717
package framework
1818

1919
import (
20+
"context"
21+
2022
plugin "github.com/hashicorp/go-plugin"
21-
"golang.org/x/net/context"
2223
"google.golang.org/grpc"
2324

2425
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"

pkg/plugin/framework/delete_item_action_client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ package framework
1919
import (
2020
"encoding/json"
2121

22+
"context"
23+
2224
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2425
"google.golang.org/grpc"
2526

2627
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"

pkg/plugin/framework/delete_item_action_server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ package framework
1919
import (
2020
"encoding/json"
2121

22+
"context"
23+
2224
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2425
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2526

2627
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"

0 commit comments

Comments
 (0)