From 7c93f5fa94a020a0066a608d0725a6ad64251ed6 Mon Sep 17 00:00:00 2001 From: Shigeo Hashimoto Date: Sat, 9 Mar 2024 22:33:33 +0900 Subject: [PATCH] v2/search: Remove golang.org/x/net dependency Use standard context instead of golang.org/x/net/context, and remove dependency. refs: #295 --- v2/go.mod | 1 - v2/go.sum | 1 - v2/search/search.go | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/v2/go.mod b/v2/go.mod index 2baf8c4a..cfa37539 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -4,7 +4,6 @@ go 1.11 require ( github.com/golang/protobuf v1.5.0 - golang.org/x/net v0.0.0-20220722155237-a158d28d115b golang.org/x/text v0.3.8 google.golang.org/protobuf v1.30.0 ) diff --git a/v2/go.sum b/v2/go.sum index 64014e4c..b77e5858 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -8,7 +8,6 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/v2/search/search.go b/v2/search/search.go index d19a08e4..bd79d0e3 100644 --- a/v2/search/search.go +++ b/v2/search/search.go @@ -11,6 +11,7 @@ package search // import "google.golang.org/appengine/v2/search" // time.Time)? _MAXIMUM_STRING_LENGTH? import ( + "context" "errors" "fmt" "math" @@ -22,7 +23,6 @@ import ( "unicode/utf8" "github.com/golang/protobuf/proto" - "golang.org/x/net/context" "google.golang.org/appengine/v2" "google.golang.org/appengine/v2/internal"