فهرست منبع

Merge pull request #37449 from thaJeztah/in_a_different_context

Remove stray uses of "golang.org/x/net/context"
Akihiro Suda 7 سال پیش
والد
کامیت
d080de7074
3فایلهای تغییر یافته به همراه3 افزوده شده و 6 حذف شده
  1. 1 3
      api/templates/server/operation.gotmpl
  2. 1 2
      client/build_cancel.go
  3. 1 1
      client/hijack_test.go

+ 1 - 3
api/templates/server/operation.gotmpl

@@ -8,10 +8,8 @@ package {{ .Package }}
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 
 
 import (
 import (
+	"context"
 	"net/http"
 	"net/http"
-
-	context "golang.org/x/net/context"
-
   {{ range .DefaultImports }}{{ printf "%q" . }}
   {{ range .DefaultImports }}{{ printf "%q" . }}
   {{ end }}
   {{ end }}
   {{ range $key, $value := .Imports }}{{ $key }} {{ printf "%q" $value }}
   {{ range $key, $value := .Imports }}{{ $key }} {{ printf "%q" $value }}

+ 1 - 2
client/build_cancel.go

@@ -1,9 +1,8 @@
 package client // import "github.com/docker/docker/client"
 package client // import "github.com/docker/docker/client"
 
 
 import (
 import (
+	"context"
 	"net/url"
 	"net/url"
-
-	"golang.org/x/net/context"
 )
 )
 
 
 // BuildCancel requests the daemon to cancel ongoing build request
 // BuildCancel requests the daemon to cancel ongoing build request

+ 1 - 1
client/hijack_test.go

@@ -1,6 +1,7 @@
 package client
 package client
 
 
 import (
 import (
+	"context"
 	"fmt"
 	"fmt"
 	"io/ioutil"
 	"io/ioutil"
 	"net"
 	"net"
@@ -12,7 +13,6 @@ import (
 	"github.com/docker/docker/api/server/httputils"
 	"github.com/docker/docker/api/server/httputils"
 	"github.com/docker/docker/api/types"
 	"github.com/docker/docker/api/types"
 	"github.com/pkg/errors"
 	"github.com/pkg/errors"
-	"golang.org/x/net/context"
 	"gotest.tools/assert"
 	"gotest.tools/assert"
 )
 )