Merge pull request #1300 from jonboulle/godep

*: move from third_party to Godep
This commit is contained in:
Brandon Philips 2014-10-14 01:03:58 -07:00
commit 2b03d35ab9
58 changed files with 59 additions and 30 deletions

22
Godeps/Godeps.json generated Normal file
View File

@ -0,0 +1,22 @@
{
"ImportPath": "github.com/coreos/etcd",
"GoVersion": "go1.3.1",
"Packages": [
"./..."
],
"Deps": [
{
"ImportPath": "code.google.com/p/go.net/context",
"Comment": "null-144",
"Rev": "ad01a6fcc8a19d3a4478c836895ffe883bd2ceab"
},
{
"ImportPath": "code.google.com/p/gogoprotobuf/proto",
"Rev": "7fd1620f09261338b6b1ca1289ace83aee0ec946"
},
{
"ImportPath": "github.com/stretchr/testify/assert",
"Rev": "9cc77fa25329013ce07362c7742952ff887361f2"
}
]
}

5
Godeps/Readme generated Normal file
View File

@ -0,0 +1,5 @@
This directory tree is generated automatically by godep.
Please do not edit.
See https://github.com/tools/godep for more information.

2
Godeps/_workspace/.gitignore generated vendored Normal file
View File

@ -0,0 +1,2 @@
/pkg
/bin

View File

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

View File

@ -44,7 +44,7 @@ import (
"time" "time"
. "./testdata" . "./testdata"
. "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" . "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
) )
var globalO *Buffer var globalO *Buffer

View File

@ -34,7 +34,7 @@ package proto_test
import ( import (
"testing" "testing"
"github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
pb "./testdata" pb "./testdata"
) )

View File

@ -35,7 +35,7 @@ import (
"testing" "testing"
pb "./testdata" pb "./testdata"
. "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" . "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
) )
// Four identical base messages. // Four identical base messages.

View File

@ -89,7 +89,7 @@
package example package example
import "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import "code.google.com/p/gogoprotobuf/proto"
type FOO int32 type FOO int32
const ( const (
@ -168,7 +168,7 @@
import ( import (
"log" "log"
"github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" "code.google.com/p/gogoprotobuf/proto"
"./example.pb" "./example.pb"
) )

View File

@ -36,7 +36,7 @@ import (
"testing" "testing"
pb "./testdata" pb "./testdata"
. "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" . "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
) )
var messageWithExtension1 = &pb.MyMessage{Count: Int32(7)} var messageWithExtension1 = &pb.MyMessage{Count: Int32(7)}

View File

@ -36,7 +36,7 @@ It has these top-level messages:
*/ */
package testdata package testdata
import proto "github.com/coreos/etcd/third_party/github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"
import math "math" import math "math"

View File

@ -4,7 +4,7 @@
package testdata package testdata
import proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import proto "code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"
import math "math" import math "math"

View File

@ -37,7 +37,7 @@ import (
"testing" "testing"
. "./testdata" . "./testdata"
. "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" . "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
) )
type UnmarshalTextTest struct { type UnmarshalTextTest struct {

View File

@ -39,7 +39,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
pb "./testdata" pb "./testdata"
) )

View File

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

View File

@ -11,7 +11,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context" "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
) )
func TestV2URLHelper(t *testing.T) { func TestV2URLHelper(t *testing.T) {

View File

@ -12,12 +12,12 @@ import (
"strings" "strings"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.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"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/store" "github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
) )
const ( const (

View File

@ -14,12 +14,12 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.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"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/store" "github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
) )
func boolp(b bool) *bool { return &b } func boolp(b bool) *bool { return &b }

View File

@ -14,14 +14,14 @@
*/ */
package etcdserverpb package etcdserverpb
import proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"
import math "math" import math "math"
// discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb" // discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb"
import io "io" import io "io"
import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
// Reference proto, json, and math imports to suppress error if they are not otherwise used. // Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal

View File

@ -9,13 +9,13 @@ 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/discovery" "github.com/coreos/etcd/discovery"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb" pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/raft" "github.com/coreos/etcd/raft"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/snap" "github.com/coreos/etcd/snap"
"github.com/coreos/etcd/store" "github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
"github.com/coreos/etcd/wait" "github.com/coreos/etcd/wait"
"github.com/coreos/etcd/wal" "github.com/coreos/etcd/wal"
) )

View File

@ -9,12 +9,12 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb" pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/pkg" "github.com/coreos/etcd/pkg"
"github.com/coreos/etcd/raft" "github.com/coreos/etcd/raft"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/store" "github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
) )
func TestGetExpirationTime(t *testing.T) { func TestGetExpirationTime(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"log" "log"
"reflect" "reflect"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
pb "github.com/coreos/etcd/raft/raftpb" pb "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
) )
var ( var (

View File

@ -5,9 +5,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
"github.com/coreos/etcd/pkg" "github.com/coreos/etcd/pkg"
"github.com/coreos/etcd/raft/raftpb" "github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
) )
// TestNodeStep ensures that node.Step sends msgProp to propc chan // TestNodeStep ensures that node.Step sends msgProp to propc chan

View File

@ -17,14 +17,14 @@
*/ */
package raftpb package raftpb
import proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"
import math "math" import math "math"
// discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb" // discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb"
import io "io" import io "io"
import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
// Reference proto, json, and math imports to suppress error if they are not otherwise used. // Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal

View File

@ -4,7 +4,7 @@
# Run from repository root. # Run from repository root.
# #
PREFIX="github.com/coreos/etcd/third_party" PREFIX="github.com/coreos/etcd/Godeps/_workspace/src"
DIRS="./wal/walpb ./etcdserver/etcdserverpb ./snap/snappb ./raft/raftpb" DIRS="./wal/walpb ./etcdserver/etcdserverpb ./snap/snappb ./raft/raftpb"
SHA="20c42d4d4d776b60d32c2d35ecac40a60793f661" SHA="20c42d4d4d776b60d32c2d35ecac40a60793f661"

View File

@ -13,14 +13,14 @@
*/ */
package snappb package snappb
import proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"
import math "math" import math "math"
// discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb" // discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb"
import io "io" import io "io"
import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
// Reference proto, json, and math imports to suppress error if they are not otherwise used. // Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/third_party/github.com/stretchr/testify/assert" "github.com/coreos/etcd/Godeps/_workspace/src/github.com/stretchr/testify/assert"
) )
// Ensure that a successful Get is recorded in the stats. // Ensure that a successful Get is recorded in the stats.

View File

@ -20,8 +20,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/stretchr/testify/assert"
etcdErr "github.com/coreos/etcd/error" etcdErr "github.com/coreos/etcd/error"
"github.com/coreos/etcd/third_party/github.com/stretchr/testify/assert"
) )
// Ensure that the store can retrieve an existing value. // Ensure that the store can retrieve an existing value.

View File

@ -13,14 +13,14 @@
*/ */
package walpb package walpb
import proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"
import math "math" import math "math"
// discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb" // discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb"
import io "io" import io "io"
import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto" import code_google_com_p_gogoprotobuf_proto "github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
// Reference proto, json, and math imports to suppress error if they are not otherwise used. // Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal