Skip to content

Commit 41f3b1d

Browse files
work-jlsunxu-chaojie
authored andcommitted
change gitsubmodule to bazel dependency
Change-Id: I2104a239f1e39b8e14c77e7897c4ab46c92da230
1 parent 9ab6a16 commit 41f3b1d

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
[submodule "thirdparties/braft"]
2-
path = thirdparties/braft
3-
url = ssh://[email protected]:29418/curve/curve-braft
4-
[submodule "thirdparties/brpc"]
5-
path = thirdparties/brpc
6-
url = ssh://[email protected]:29418/curve/curve-brpc

WORKSPACE

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
workspace(name = "curve")
22

3-
local_repository(
4-
name = "com_github_brpc_braft",
5-
path = "thirdparties/braft",
3+
git_repository(
4+
name = "com_netease_storage_gerrit_curve_curve_braft",
5+
remote = "http://gerrit.storage.netease.com/curve/curve-braft",
6+
commit = "5a64dad6c327f68e90f6f1b1d25f440055f2b309",
67
)
78

89
bind(
910
name = "braft",
10-
actual = "@com_github_brpc_braft//:braft",
11+
actual = "@com_netease_storage_gerrit_curve_curve_braft//:braft",
1112
)
1213

1314
# proto_library, cc_proto_library, and java_proto_library rules implicitly
@@ -74,29 +75,30 @@ bind(
7475
actual = "@com_github_google_leveldb//:leveldb",
7576
)
7677

77-
local_repository(
78-
name = "com_github_brpc_brpc",
79-
path = "thirdparties/brpc",
78+
git_repository(
79+
name = "com_netease_storage_gerrit_curve_curve_brpc",
80+
remote = "http://gerrit.storage.netease.com/curve/curve-brpc",
81+
commit = "5d7dc6d53af8589d122b67ad0fc2de28f3c2ade5",
8082
)
8183

8284
bind(
8385
name = "brpc",
84-
actual = "@com_github_brpc_brpc//:brpc",
86+
actual = "@com_netease_storage_gerrit_curve_curve_brpc//:brpc",
8587
)
8688

8789
bind(
8890
name = "butil",
89-
actual = "@com_github_brpc_brpc//:butil",
91+
actual = "@com_netease_storage_gerrit_curve_curve_brpc//:butil",
9092
)
9193

9294
bind(
9395
name = "bthread",
94-
actual = "@com_github_brpc_brpc//:bthread",
96+
actual = "@com_netease_storage_gerrit_curve_curve_brpc//:bthread",
9597
)
9698

9799
bind(
98100
name = "bvar",
99-
actual = "@com_github_brpc_brpc//:bvar",
101+
actual = "@com_netease_storage_gerrit_curve_curve_brpc//:bvar",
100102
)
101103

102104
# jsoncpp

thirdparties/braft

Lines changed: 0 additions & 1 deletion
This file was deleted.

thirdparties/brpc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)