Skip to content

Commit

Permalink
Merge pull request #1113 from elezar/use-stdlib-context
Browse files Browse the repository at this point in the history
Switch to context package in go stdlib
  • Loading branch information
elezar authored Jan 9, 2025
2 parents 06701cd + c3be751 commit 61887fe
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 560 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ require (
github.com/stretchr/testify v1.10.0
github.com/urfave/cli/v2 v2.27.5
golang.org/x/mod v0.22.0
golang.org/x/net v0.34.0
google.golang.org/grpc v1.65.0
k8s.io/api v0.31.3
k8s.io/apimachinery v0.31.3
Expand Down Expand Up @@ -64,6 +63,7 @@ require (
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/term v0.28.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion internal/plugin/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package plugin

import (
"context"
"errors"
"fmt"
"net"
Expand All @@ -34,7 +35,6 @@ import (
"github.com/NVIDIA/k8s-device-plugin/internal/rm"

"github.com/google/uuid"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

Expand Down
56 changes: 0 additions & 56 deletions vendor/golang.org/x/net/context/context.go

This file was deleted.

72 changes: 0 additions & 72 deletions vendor/golang.org/x/net/context/go17.go

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/golang.org/x/net/context/go19.go

This file was deleted.

Loading

0 comments on commit 61887fe

Please sign in to comment.