client: Move client to client/v2 as a module.

We make v2 client code a module go.etcd.io/etcd/client/v2.

Pretty mechanical change that can be summarized as:

  mkdir client/v2
  cd client/v2 && git mod init go.etcd.io/etcd/client/v2

  git mv client/*.go client/v2/
  find -name '*.go' | xargs sed -i --follow-symlinks 's|/v3/client["]|/client/v2\"|g'

  + fixing changelog, bom, go.mod etc.
This commit is contained in:
Piotr Tabor
2020-10-15 14:39:43 +02:00
parent d0d927f0db
commit 45e4306508
61 changed files with 396 additions and 41 deletions

View File

@@ -350,6 +350,15 @@
}
]
},
{
"project": "go.etcd.io/etcd/client/v2",
"licenses": [
{
"type": "Apache License 2.0",
"confidence": 1
}
]
},
{
"project": "go.etcd.io/etcd/pkg/v3",
"licenses": [