dep: bump golang.org/x/net/context

Move from code.google.com/p/go.net/context to
golang.org/x/net/context before bumping to latest.
This commit is contained in:
Brian Waldon 2014-11-20 10:02:52 -08:00
parent b50f331558
commit 9a728a127a
22 changed files with 38 additions and 37 deletions

10
Godeps/Godeps.json generated
View File

@ -5,11 +5,6 @@
"./..." "./..."
], ],
"Deps": [ "Deps": [
{
"ImportPath": "code.google.com/p/go.net/context",
"Comment": "null-144",
"Rev": "ad01a6fcc8a19d3a4478c836895ffe883bd2ceab"
},
{ {
"ImportPath": "code.google.com/p/gogoprotobuf/proto", "ImportPath": "code.google.com/p/gogoprotobuf/proto",
"Rev": "7fd1620f09261338b6b1ca1289ace83aee0ec946" "Rev": "7fd1620f09261338b6b1ca1289ace83aee0ec946"
@ -31,6 +26,11 @@
{ {
"ImportPath": "github.com/stretchr/testify/assert", "ImportPath": "github.com/stretchr/testify/assert",
"Rev": "9cc77fa25329013ce07362c7742952ff887361f2" "Rev": "9cc77fa25329013ce07362c7742952ff887361f2"
},
{
"ImportPath": "golang.org/x/net/context",
"Comment": "null-220",
"Rev": "c5a46024776ec35eb562fa9226968b9d543bb13a"
} }
] ]
} }

View File

@ -108,7 +108,7 @@ type Context interface {
// // Package user defines a User type that's stored in Contexts. // // Package user defines a User type that's stored in Contexts.
// package user // package user
// //
// import "code.google.com/p/go.net/context" // import "golang.org/x/net/context"
// //
// // User is the type of value stored in the Contexts. // // User is the type of value stored in the Contexts.
// type User struct {...} // type User struct {...}
@ -124,7 +124,7 @@ type Context interface {
// //
// // NewContext returns a new Context that carries value u. // // NewContext returns a new Context that carries value u.
// func NewContext(ctx context.Context, u *User) context.Context { // func NewContext(ctx context.Context, u *User) context.Context {
// return context.WithValue(userKey, u) // return context.WithValue(ctx, userKey, u)
// } // }
// //
// // FromContext returns the User value stored in ctx, if any. // // FromContext returns the User value stored in ctx, if any.
@ -142,27 +142,28 @@ var Canceled = errors.New("context canceled")
// deadline passes. // deadline passes.
var DeadlineExceeded = errors.New("context deadline exceeded") var DeadlineExceeded = errors.New("context deadline exceeded")
// An emptyCtx is never canceled, has no values, and has no deadline. // An emptyCtx is never canceled, has no values, and has no deadline. It is not
// struct{}, since vars of this type must have distinct addresses.
type emptyCtx int type emptyCtx int
func (emptyCtx) Deadline() (deadline time.Time, ok bool) { func (*emptyCtx) Deadline() (deadline time.Time, ok bool) {
return return
} }
func (emptyCtx) Done() <-chan struct{} { func (*emptyCtx) Done() <-chan struct{} {
return nil return nil
} }
func (emptyCtx) Err() error { func (*emptyCtx) Err() error {
return nil return nil
} }
func (emptyCtx) Value(key interface{}) interface{} { func (*emptyCtx) Value(key interface{}) interface{} {
return nil return nil
} }
func (n emptyCtx) String() string { func (e *emptyCtx) String() string {
switch n { switch e {
case background: case background:
return "context.Background" return "context.Background"
case todo: case todo:
@ -171,9 +172,9 @@ func (n emptyCtx) String() string {
return "unknown empty Context" return "unknown empty Context"
} }
const ( var (
background emptyCtx = 1 background = new(emptyCtx)
todo emptyCtx = 2 todo = new(emptyCtx)
) )
// Background returns a non-nil, empty Context. It is never canceled, has no // Background returns a non-nil, empty Context. It is never canceled, has no

View File

@ -365,7 +365,7 @@ func TestAllocs(t *testing.T) {
c := WithValue(bg, k1, nil) c := WithValue(bg, k1, nil)
c.Value(k1) c.Value(k1)
}, },
limit: 1, limit: 3,
gccgoLimit: 3, gccgoLimit: 3,
}, },
{ {

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
func ExampleWithTimeout() { func ExampleWithTimeout() {

View File

@ -24,7 +24,7 @@ import (
"net/url" "net/url"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
var ( var (

View File

@ -26,7 +26,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
type staticHTTPClient struct { type staticHTTPClient struct {

View File

@ -27,7 +27,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
var ( var (

View File

@ -24,7 +24,7 @@ import (
"net/url" "net/url"
"path" "path"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/etcdserver/etcdhttp/httptypes" "github.com/coreos/etcd/etcdserver/etcdhttp/httptypes"
"github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/pkg/types"
) )

View File

@ -28,8 +28,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork" "github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork"
"github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/client" "github.com/coreos/etcd/client"
"github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/pkg/types"
) )

View File

@ -26,8 +26,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork" "github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork"
"github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/client" "github.com/coreos/etcd/client"
) )

View File

@ -21,8 +21,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli" "github.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli"
"github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/client" "github.com/coreos/etcd/client"
) )

View File

@ -29,8 +29,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork" "github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork"
"github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
etcdErr "github.com/coreos/etcd/error" etcdErr "github.com/coreos/etcd/error"
"github.com/coreos/etcd/etcdserver" "github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/etcdhttp/httptypes" "github.com/coreos/etcd/etcdserver/etcdhttp/httptypes"

View File

@ -31,8 +31,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork" "github.com/coreos/etcd/Godeps/_workspace/src/github.com/jonboulle/clockwork"
"github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
etcdErr "github.com/coreos/etcd/error" etcdErr "github.com/coreos/etcd/error"
"github.com/coreos/etcd/etcdserver" "github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/etcdhttp/httptypes" "github.com/coreos/etcd/etcdserver/etcdhttp/httptypes"

View File

@ -24,7 +24,7 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
etcdErr "github.com/coreos/etcd/error" etcdErr "github.com/coreos/etcd/error"
"github.com/coreos/etcd/etcdserver" "github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/etcdserverpb" "github.com/coreos/etcd/etcdserver/etcdserverpb"

View File

@ -31,7 +31,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/discovery" "github.com/coreos/etcd/discovery"
"github.com/coreos/etcd/etcdserver/etcdhttp/httptypes" "github.com/coreos/etcd/etcdserver/etcdhttp/httptypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb" pb "github.com/coreos/etcd/etcdserver/etcdserverpb"

View File

@ -29,7 +29,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb" pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/pkg/pbutil" "github.com/coreos/etcd/pkg/pbutil"
"github.com/coreos/etcd/pkg/testutil" "github.com/coreos/etcd/pkg/testutil"

View File

@ -36,7 +36,7 @@ import (
"github.com/coreos/etcd/etcdserver/etcdhttp/httptypes" "github.com/coreos/etcd/etcdserver/etcdhttp/httptypes"
"github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/pkg/types"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
const ( const (

View File

@ -21,7 +21,7 @@ import (
"log" "log"
"reflect" "reflect"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
pb "github.com/coreos/etcd/raft/raftpb" pb "github.com/coreos/etcd/raft/raftpb"
) )

View File

@ -19,7 +19,7 @@ package raft
import ( import (
"testing" "testing"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
func BenchmarkOneNode(b *testing.B) { func BenchmarkOneNode(b *testing.B) {

View File

@ -21,7 +21,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/pkg/testutil" "github.com/coreos/etcd/pkg/testutil"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
) )

View File

@ -24,7 +24,7 @@ import (
"github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/pkg/types"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
type Processor interface { type Processor interface {

View File

@ -29,7 +29,7 @@ import (
"github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/pkg/types"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/golang.org/x/net/context"
) )
func TestServeRaft(t *testing.T) { func TestServeRaft(t *testing.T) {