Files
etcd/client/v2/go.mod
Piotr Tabor 45e4306508 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.
2020-10-15 14:39:43 +02:00

24 lines
588 B
Modula-2

module go.etcd.io/etcd/client/v2
go 1.15
require (
github.com/json-iterator/go v1.1.10
github.com/modern-go/reflect2 v1.0.1
go.etcd.io/etcd/api/v3 v3.0.0-20201012212543-0b95e8cef14a
go.etcd.io/etcd/pkg/v3 v3.0.0-00010101000000-000000000000
)
replace (
go.etcd.io/etcd/api/v3 => ../../api
go.etcd.io/etcd/pkg/v3 => ../../pkg
)
// Bad imports are sometimes causing attempts to pull that code.
// This makes the error more explicit.
replace (
go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
go.etcd.io/tests/v3 => ./FORBIDDEN_DEPENDENCY
)