diff --git a/examples/bidirectional/proto/kv.pb.go b/examples/bidirectional/proto/kv.pb.go index e71ec618..59aed9f5 100644 --- a/examples/bidirectional/proto/kv.pb.go +++ b/examples/bidirectional/proto/kv.pb.go @@ -22,7 +22,7 @@ import fmt "fmt" import math "math" import ( - context "golang.org/x/net/context" + context "context" grpc "google.golang.org/grpc" ) diff --git a/examples/bidirectional/shared/grpc.go b/examples/bidirectional/shared/grpc.go index 1556fd70..d2c05422 100644 --- a/examples/bidirectional/shared/grpc.go +++ b/examples/bidirectional/shared/grpc.go @@ -4,10 +4,11 @@ package shared import ( + "context" + hclog "github.com/hashicorp/go-hclog" plugin "github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin/examples/bidirectional/proto" - "golang.org/x/net/context" "google.golang.org/grpc" ) diff --git a/examples/bidirectional/shared/interface.go b/examples/bidirectional/shared/interface.go index 578111c4..5133a419 100644 --- a/examples/bidirectional/shared/interface.go +++ b/examples/bidirectional/shared/interface.go @@ -5,7 +5,8 @@ package shared import ( - "golang.org/x/net/context" + "context" + "google.golang.org/grpc" "github.com/hashicorp/go-plugin" diff --git a/examples/grpc/proto/kv.pb.go b/examples/grpc/proto/kv.pb.go index 6ddbdaf0..6e906405 100644 --- a/examples/grpc/proto/kv.pb.go +++ b/examples/grpc/proto/kv.pb.go @@ -20,7 +20,7 @@ import fmt "fmt" import math "math" import ( - context "golang.org/x/net/context" + context "context" grpc "google.golang.org/grpc" ) diff --git a/examples/grpc/shared/grpc.go b/examples/grpc/shared/grpc.go index 60af0897..5846bdf4 100644 --- a/examples/grpc/shared/grpc.go +++ b/examples/grpc/shared/grpc.go @@ -4,8 +4,9 @@ package shared import ( + "context" + "github.com/hashicorp/go-plugin/examples/grpc/proto" - "golang.org/x/net/context" ) // GRPCClient is an implementation of KV that talks over RPC. diff --git a/go.mod b/go.mod index f2885221..f99adc68 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,6 @@ require ( github.com/jhump/protoreflect v1.6.0 github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77 github.com/oklog/run v1.0.0 - golang.org/x/net v0.0.0-20190311183353-d8887717615a google.golang.org/grpc v1.27.1 ) @@ -18,6 +17,7 @@ require ( github.com/mattn/go-colorable v0.1.4 // indirect github.com/mattn/go-isatty v0.0.10 // indirect github.com/stretchr/testify v1.3.0 // indirect + golang.org/x/net v0.0.0-20190311183353-d8887717615a // indirect golang.org/x/sys v0.0.0-20191008105621-543471e840be // indirect golang.org/x/text v0.3.0 // indirect google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 // indirect diff --git a/grpc_client.go b/grpc_client.go index b0592cb5..6454d426 100644 --- a/grpc_client.go +++ b/grpc_client.go @@ -4,6 +4,7 @@ package plugin import ( + "context" "crypto/tls" "fmt" "math" @@ -11,7 +12,6 @@ import ( "time" "github.com/hashicorp/go-plugin/internal/plugin" - "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/health/grpc_health_v1" diff --git a/internal/plugin/grpc_broker.pb.go b/internal/plugin/grpc_broker.pb.go index 6bf10385..303b63e4 100644 --- a/internal/plugin/grpc_broker.pb.go +++ b/internal/plugin/grpc_broker.pb.go @@ -8,7 +8,7 @@ import fmt "fmt" import math "math" import ( - context "golang.org/x/net/context" + context "context" grpc "google.golang.org/grpc" ) diff --git a/internal/plugin/grpc_controller.pb.go b/internal/plugin/grpc_controller.pb.go index 3e39da95..982fca0a 100644 --- a/internal/plugin/grpc_controller.pb.go +++ b/internal/plugin/grpc_controller.pb.go @@ -8,7 +8,7 @@ import fmt "fmt" import math "math" import ( - context "golang.org/x/net/context" + context "context" grpc "google.golang.org/grpc" ) diff --git a/internal/plugin/grpc_stdio.pb.go b/internal/plugin/grpc_stdio.pb.go index c8f94921..bdef71b8 100644 --- a/internal/plugin/grpc_stdio.pb.go +++ b/internal/plugin/grpc_stdio.pb.go @@ -9,7 +9,7 @@ import math "math" import empty "github.com/golang/protobuf/ptypes/empty" import ( - context "golang.org/x/net/context" + context "context" grpc "google.golang.org/grpc" ) diff --git a/plugin_test.go b/plugin_test.go index 63bc250f..d7cc2739 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -4,6 +4,7 @@ package plugin import ( + "context" "crypto/tls" "crypto/x509" "errors" @@ -20,7 +21,6 @@ import ( "github.com/golang/protobuf/ptypes/empty" "github.com/hashicorp/go-hclog" grpctest "github.com/hashicorp/go-plugin/test/grpc" - "golang.org/x/net/context" "google.golang.org/grpc" ) diff --git a/test/grpc/test.pb.go b/test/grpc/test.pb.go index 31407689..559fb7d0 100644 --- a/test/grpc/test.pb.go +++ b/test/grpc/test.pb.go @@ -9,7 +9,7 @@ import math "math" import empty "github.com/golang/protobuf/ptypes/empty" import ( - context "golang.org/x/net/context" + context "context" grpc "google.golang.org/grpc" )