pkg: Rename imports after making 'pkg' a module

find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
This commit is contained in:
Piotr Tabor
2020-10-13 00:01:51 +02:00
parent bfa91d48af
commit de55bb6331
260 changed files with 368 additions and 366 deletions

View File

@@ -24,11 +24,11 @@ import (
"time"
"go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/pkg/v3/fileutil"
"go.etcd.io/etcd/pkg/v3/idutil"
"go.etcd.io/etcd/pkg/v3/pbutil"
"go.etcd.io/etcd/v3/etcdserver/api/membership"
"go.etcd.io/etcd/v3/etcdserver/api/snap"
"go.etcd.io/etcd/v3/pkg/fileutil"
"go.etcd.io/etcd/v3/pkg/idutil"
"go.etcd.io/etcd/v3/pkg/pbutil"
"go.etcd.io/etcd/v3/raft/raftpb"
"go.etcd.io/etcd/v3/wal"
"go.etcd.io/etcd/v3/wal/walpb"

View File

@@ -21,8 +21,8 @@ import (
"strings"
"github.com/urfave/cli"
"go.etcd.io/etcd/pkg/v3/pathutil"
"go.etcd.io/etcd/v3/client"
"go.etcd.io/etcd/v3/pkg/pathutil"
)
func NewRoleCommands() cli.Command {

View File

@@ -28,8 +28,8 @@ import (
"syscall"
"time"
"go.etcd.io/etcd/pkg/v3/transport"
"go.etcd.io/etcd/v3/client"
"go.etcd.io/etcd/v3/pkg/transport"
"github.com/bgentry/speakeasy"
"github.com/urfave/cli"