Skip to content

Commit 77b6812

Browse files
committed
Replace golang.org/x/net/context with context package to fix linter issues.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
1 parent 8e35a19 commit 77b6812

40 files changed

+49
-41
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ require (
4444
github.com/vmware-tanzu/crash-diagnostics v0.3.7
4545
go.uber.org/zap v1.27.0
4646
golang.org/x/mod v0.29.0
47-
golang.org/x/net v0.47.0
4847
golang.org/x/oauth2 v0.30.0
4948
golang.org/x/text v0.31.0
5049
google.golang.org/api v0.241.0
@@ -184,6 +183,7 @@ require (
184183
go.uber.org/multierr v1.11.0 // indirect
185184
golang.org/x/crypto v0.45.0 // indirect
186185
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
186+
golang.org/x/net v0.47.0 // indirect
187187
golang.org/x/sync v0.18.0 // indirect
188188
golang.org/x/sys v0.38.0 // indirect
189189
golang.org/x/term v0.37.0 // indirect

hack/build-image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM --platform=$TARGETPLATFORM golang:1.24.9-bookworm
15+
FROM --platform=$TARGETPLATFORM golang:1.24.11-bookworm
1616

1717
ARG GOPROXY
1818

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
package framework
1818

1919
import (
20+
"context"
2021
"encoding/json"
2122

2223
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2424
"google.golang.org/grpc"
2525
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2626
"k8s.io/apimachinery/pkg/runtime"

pkg/plugin/framework/backup_item_action_server.go

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

1919
import (
20+
"context"
2021
"encoding/json"
2122

2223
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2424
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2525

2626
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
package v2
1818

1919
import (
20+
"context"
2021
"encoding/json"
2122

2223
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2424
"google.golang.org/grpc"
2525
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2626
"k8s.io/apimachinery/pkg/runtime"

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

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

1919
import (
20+
"context"
2021
"encoding/json"
2122

2223
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2424
"google.golang.org/protobuf/types/known/emptypb"
2525
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2626

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
package framework
1818

1919
import (
20+
"context"
2021
"encoding/json"
2122

2223
"github.com/pkg/errors"
23-
"golang.org/x/net/context"
2424
"google.golang.org/grpc"
2525

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

0 commit comments

Comments
 (0)