raft: Make raft a module

Establishing a module: Creating a go.mod files
This commit is contained in:
Piotr Tabor
2020-10-14 08:38:47 +02:00
parent b7f0f52a16
commit bea5f379bc
8 changed files with 350 additions and 3 deletions

19
raft/go.mod Normal file
View File

@@ -0,0 +1,19 @@
module go.etcd.io/etcd/raft/v3
go 1.15
require (
github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5
github.com/gogo/protobuf v1.3.1
github.com/golang/protobuf v1.3.5
github.com/pkg/errors v0.9.1 // indirect
go.etcd.io/etcd/pkg/v3 v3.0.0-00010101000000-000000000000
)
// Bad imports are sometimes causing attempts to pull that code.
// This makes the error more explicit.
replace go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
replace go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
replace go.etcd.io/etcd/pkg/v3 => ../pkg