Skip to content

Commit 68b5f00

Browse files
committed
etcd: added patched etcd
1 parent e51e813 commit 68b5f00

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "rocksdb"]
55
path = rocksdb
66
url = https://github.com/facebook/rocksdb
7+
[submodule "etcd"]
8+
path = etcd
9+
url = https://github.com/metadium/etcd

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# with Go source code. If you know what GOPATH is then you probably
33
# don't need to bother with make.
44

5-
.PHONY: geth android ios geth-cross evm all test clean rocksdb
5+
.PHONY: geth android ios geth-cross evm all test clean rocksdb etcd
66
.PHONY: geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
77
.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
88
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
@@ -33,7 +33,7 @@ ROCKSDB_DIR=$(shell pwd)/rocksdb
3333
ROCKSDB_TAG=-tags rocksdb
3434
endif
3535

36-
metadium: gmet logrot
36+
metadium: etcd gmet logrot
3737
@[ -d build/conf ] || mkdir -p build/conf
3838
@cp -p metadium/scripts/gmet.sh metadium/scripts/solc.sh build/bin/
3939
@cp -p metadium/scripts/config.json.example \
@@ -44,7 +44,7 @@ metadium: gmet logrot
4444
@(cd build; tar cfz metadium.tar.gz bin conf)
4545
@echo "Done building build/metadium.tar.gz"
4646

47-
gmet: rocksdb metadium/governance_abi.go
47+
gmet: etcd rocksdb metadium/governance_abi.go
4848
ifeq ($(USE_ROCKSDB), NO)
4949
$(GORUN) build/ci.go install $(ROCKSDB_TAG) ./cmd/gmet
5050
else
@@ -206,7 +206,7 @@ geth-windows-amd64:
206206
@echo "Windows amd64 cross compilation done:"
207207
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
208208

209-
gmet-linux:
209+
gmet-linux: etcd
210210
@docker --version > /dev/null 2>&1; \
211211
if [ ! $$? = 0 ]; then \
212212
echo "Docker not found."; \
@@ -226,6 +226,11 @@ rocksdb:
226226
cd $(ROCKSDB_DIR) && make -j8 static_lib;
227227
endif
228228

229+
etcd:
230+
@if [ ! -e etcd/.git ]; then \
231+
git submodule update --init etcd; \
232+
fi
233+
229234
AWK_CODE=' \
230235
BEGIN { print "package metadium"; bin = 0; name = ""; abi = ""; } \
231236
/^{/ { bin = 1; abi = ""; name = ""; } \

etcd

Submodule etcd added at 288f93d

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,5 @@ require (
9393
gopkg.in/yaml.v2 v2.4.0 // indirect
9494
gotest.tools v2.2.0+incompatible // indirect
9595
)
96+
97+
replace github.com/coreos/etcd => ./etcd

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f h1:C43yEt
109109
github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q=
110110
github.com/coreos/bbolt v1.3.1-etcd.8 h1:xTcsP8rG1dLB1VRhYSyf6sFQnIU39vC7OkbtEU8bWIA=
111111
github.com/coreos/bbolt v1.3.1-etcd.8/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
112-
github.com/coreos/etcd v0.0.0-20180723195020-3f725e190e0f h1:cSKf/6GIOMec3aXNGhkr2mPIFEPGQ5mtl5eu067urW8=
113-
github.com/coreos/etcd v0.0.0-20180723195020-3f725e190e0f/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
114112
github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=
115113
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
116114
github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142 h1:3jFq2xL4ZajGK4aZY8jz+DAF0FHjI51BXjjSwCzS1Dk=

0 commit comments

Comments
 (0)