go modules: Fix module path version to include version number

This commit is contained in:
shivaramr
2019-04-26 14:17:16 -07:00
parent cca0d5c1be
commit 9150bf52d6
544 changed files with 1384 additions and 1376 deletions

View File

@@ -17,7 +17,7 @@ package adt_test
import (
"fmt"
"go.etcd.io/etcd/pkg/adt"
"go.etcd.io/etcd/v3/pkg/adt"
)
func Example() {

View File

@@ -20,7 +20,7 @@ import (
"sort"
"strings"
"go.etcd.io/etcd/pkg/types"
"go.etcd.io/etcd/v3/pkg/types"
)
// UniqueURLs contains unique URLs

View File

@@ -19,7 +19,7 @@ import (
"net/url"
"strings"
"go.etcd.io/etcd/pkg/types"
"go.etcd.io/etcd/v3/pkg/types"
)
// URLsValue wraps "types.URLs".

View File

@@ -18,7 +18,7 @@ import (
"io"
"os"
"go.etcd.io/etcd/pkg/fileutil"
"go.etcd.io/etcd/v3/pkg/fileutil"
)
// WriteAndSyncFile behaves just like ioutil.WriteFile in the standard library,

View File

@@ -20,7 +20,7 @@ import (
"strings"
"testing"
"go.etcd.io/etcd/pkg/logutil"
"go.etcd.io/etcd/v3/pkg/logutil"
"google.golang.org/grpc/grpclog"
)

View File

@@ -20,7 +20,7 @@ import (
"strings"
"testing"
"go.etcd.io/etcd/pkg/logutil"
"go.etcd.io/etcd/v3/pkg/logutil"
"github.com/coreos/pkg/capnslog"
)

View File

@@ -24,7 +24,7 @@ import (
"os"
"path/filepath"
"go.etcd.io/etcd/pkg/systemd"
"go.etcd.io/etcd/v3/pkg/systemd"
"github.com/coreos/go-systemd/journal"
"go.uber.org/zap/zapcore"

View File

@@ -17,7 +17,7 @@ package logutil
import (
"errors"
"go.etcd.io/etcd/raft"
"go.etcd.io/etcd/v3/raft"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

View File

@@ -22,7 +22,7 @@ import (
"os"
"sync"
pb "go.etcd.io/etcd/etcdserver/etcdserverpb"
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
"google.golang.org/grpc"
"google.golang.org/grpc/resolver"

View File

@@ -15,9 +15,9 @@
package mockstorage
import (
"go.etcd.io/etcd/pkg/testutil"
"go.etcd.io/etcd/raft"
"go.etcd.io/etcd/raft/raftpb"
"go.etcd.io/etcd/v3/pkg/testutil"
"go.etcd.io/etcd/v3/raft"
"go.etcd.io/etcd/v3/raft/raftpb"
)
type storageRecorder struct {

View File

@@ -17,8 +17,8 @@ package mockstore
import (
"time"
"go.etcd.io/etcd/etcdserver/api/v2store"
"go.etcd.io/etcd/pkg/testutil"
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
"go.etcd.io/etcd/v3/pkg/testutil"
)
// StoreRecorder provides a Store interface with a testutil.Recorder

View File

@@ -15,8 +15,8 @@
package mockwait
import (
"go.etcd.io/etcd/pkg/testutil"
"go.etcd.io/etcd/pkg/wait"
"go.etcd.io/etcd/v3/pkg/testutil"
"go.etcd.io/etcd/v3/pkg/wait"
)
type WaitRecorder struct {

View File

@@ -23,7 +23,7 @@ import (
"sort"
"time"
"go.etcd.io/etcd/pkg/types"
"go.etcd.io/etcd/v3/pkg/types"
"go.uber.org/zap"
)

View File

@@ -24,7 +24,7 @@ import (
"sort"
"syscall"
"go.etcd.io/etcd/pkg/cpuutil"
"go.etcd.io/etcd/v3/pkg/cpuutil"
)
var errNoDefaultRoute = fmt.Errorf("could not find default route")

View File

@@ -26,7 +26,7 @@ import (
"sync"
"time"
"go.etcd.io/etcd/pkg/transport"
"go.etcd.io/etcd/v3/pkg/transport"
humanize "github.com/dustin/go-humanize"
"go.uber.org/zap"

View File

@@ -29,7 +29,7 @@ import (
"testing"
"time"
"go.etcd.io/etcd/pkg/transport"
"go.etcd.io/etcd/v3/pkg/transport"
"go.uber.org/zap"
)

View File

@@ -21,7 +21,7 @@ import (
"net/url"
"strings"
"go.etcd.io/etcd/pkg/types"
"go.etcd.io/etcd/v3/pkg/types"
)
var (

View File

@@ -21,7 +21,7 @@ import (
"strings"
"testing"
"go.etcd.io/etcd/pkg/testutil"
"go.etcd.io/etcd/v3/pkg/testutil"
)
func TestSRVGetCluster(t *testing.T) {

View File

@@ -21,7 +21,7 @@ CheckLeakedGoroutine verifies tests do not leave any leaky
goroutines. It returns true when there are goroutines still
running(leaking) after all tests.
import "go.etcd.io/etcd/pkg/testutil"
import "go.etcd.io/etcd/v3/pkg/testutil"
func TestMain(m *testing.M) {
v := m.Run()
@@ -125,8 +125,8 @@ func interestingGoroutines() (gs []string) {
strings.Contains(stack, "created by testing.RunTests") ||
strings.Contains(stack, "testing.Main(") ||
strings.Contains(stack, "runtime.goexit") ||
strings.Contains(stack, "go.etcd.io/etcd/pkg/testutil.interestingGoroutines") ||
strings.Contains(stack, "go.etcd.io/etcd/pkg/logutil.(*MergeLogger).outputLoop") ||
strings.Contains(stack, "go.etcd.io/etcd/v3/pkg/testutil.interestingGoroutines") ||
strings.Contains(stack, "go.etcd.io/etcd/v3/pkg/logutil.(*MergeLogger).outputLoop") ||
strings.Contains(stack, "github.com/golang/glog.(*loggingT).flushDaemon") ||
strings.Contains(stack, "created by runtime.gc") ||
strings.Contains(stack, "runtime.MHeap_Scavenger") {

View File

@@ -31,7 +31,7 @@ import (
"strings"
"time"
"go.etcd.io/etcd/pkg/tlsutil"
"go.etcd.io/etcd/v3/pkg/tlsutil"
"go.uber.org/zap"
)

View File

@@ -18,7 +18,7 @@ import (
"reflect"
"testing"
"go.etcd.io/etcd/pkg/testutil"
"go.etcd.io/etcd/v3/pkg/testutil"
)
func TestNewURLs(t *testing.T) {

View File

@@ -15,7 +15,7 @@
package types
import (
"go.etcd.io/etcd/pkg/testutil"
"go.etcd.io/etcd/v3/pkg/testutil"
"reflect"
"testing"
)