Skip to content

Commit 61887fe

Browse files
authored
Merge pull request #1113 from elezar/use-stdlib-context
Switch to context package in go stdlib
2 parents 06701cd + c3be751 commit 61887fe

File tree

8 files changed

+2
-560
lines changed

8 files changed

+2
-560
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ require (
1616
github.com/stretchr/testify v1.10.0
1717
github.com/urfave/cli/v2 v2.27.5
1818
golang.org/x/mod v0.22.0
19-
golang.org/x/net v0.34.0
2019
google.golang.org/grpc v1.65.0
2120
k8s.io/api v0.31.3
2221
k8s.io/apimachinery v0.31.3
@@ -64,6 +63,7 @@ require (
6463
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
6564
github.com/x448/float16 v0.8.4 // indirect
6665
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
66+
golang.org/x/net v0.34.0 // indirect
6767
golang.org/x/oauth2 v0.21.0 // indirect
6868
golang.org/x/sys v0.29.0 // indirect
6969
golang.org/x/term v0.28.0 // indirect

internal/plugin/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package plugin
1818

1919
import (
20+
"context"
2021
"errors"
2122
"fmt"
2223
"net"
@@ -34,7 +35,6 @@ import (
3435
"github.com/NVIDIA/k8s-device-plugin/internal/rm"
3536

3637
"github.com/google/uuid"
37-
"golang.org/x/net/context"
3838
"google.golang.org/grpc"
3939
"google.golang.org/grpc/credentials/insecure"
4040

vendor/golang.org/x/net/context/context.go

Lines changed: 0 additions & 56 deletions
This file was deleted.

vendor/golang.org/x/net/context/go17.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

vendor/golang.org/x/net/context/go19.go

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)