@@ -15,21 +15,28 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1515load ("//3rdparty/bazel-rules-picojson:repos.bzl" , picojson_repos = "repos" )
1616load ("//3rdparty/bazel-rules-rapidjson:repos.bzl" , rapidjson_repos = "repos" )
1717
18- def repos (external = True , repo_mapping = {}):
19- """Adds repositories/archives needed by stout
18+ def repos ():
19+ """Adds repositories/archives needed by stout."""
20+ picojson_repos ()
2021
21- Args:
22- external: whether or not we're invoking this function as though
23- though we're an external dependency
24- repo_mapping: passed through to all other functions that expect/use
25- repo_mapping, e.g., 'git_repository'
26- """
27- picojson_repos (
28- repo_mapping = repo_mapping ,
22+ rapidjson_repos ()
23+
24+ maybe (
25+ http_archive ,
26+ name = "rules_python" ,
27+ sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07" ,
28+ strip_prefix = "rules_python-1.0.0" ,
29+ url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0/rules_python-1.0.0.tar.gz" ,
2930 )
3031
31- rapidjson_repos (
32- repo_mapping = repo_mapping ,
32+ maybe (
33+ http_archive ,
34+ name = "com_google_protobuf" ,
35+ sha256 = "955ef3235be41120db4d367be81efe6891c9544b3a71194d80c3055865b26e09" ,
36+ strip_prefix = "protobuf-29.5" ,
37+ urls = [
38+ "https://github.com/protocolbuffers/protobuf/archive/v29.5.tar.gz" ,
39+ ],
3340 )
3441
3542 maybe (
@@ -75,20 +82,9 @@ def repos(external = True, repo_mapping = {}):
7582 maybe (
7683 http_archive ,
7784 name = "com_github_google_glog" ,
78- url = "https://github.com/google/glog/archive/refs/tags/v0.5.0.tar.gz" ,
79- sha256 = "eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5" ,
80- strip_prefix = "glog-0.5.0" ,
81- )
82-
83- maybe (
84- http_archive ,
85- name = "com_google_protobuf" ,
86- sha256 = "008a11cc56f9b96679b4c285fd05f46d317d685be3ab524b2a310be0fbad987e" ,
87- strip_prefix = "protobuf-29.3" ,
88- urls = [
89- "https://github.com/protocolbuffers/protobuf/archive/v29.3.tar.gz" ,
90- ],
91- repo_mapping = repo_mapping ,
85+ sha256 = "c17d85c03ad9630006ef32c7be7c65656aba2e7e2fbfc82226b7e680c771fc88" ,
86+ strip_prefix = "glog-0.7.1" ,
87+ urls = ["https://github.com/google/glog/archive/v0.7.1.zip" ],
9288 )
9389
9490 # Copied and then modified to use the latest 'commit' and 'shallow_since'
@@ -117,12 +113,3 @@ def repos(external = True, repo_mapping = {}):
117113 "Move-Item -Path support/bazel/WORKSPACE.bazel -Destination WORKSPACE.bazel" ,
118114 ],
119115 )
120-
121- if external :
122- maybe (
123- git_repository ,
124- name = "com_github_3rdparty_stout" ,
125- commit = "67e6b9b08f340e223b741130815d97cf20296c08" ,
126- remote = "https://github.com/3rdparty/stout" ,
127- shallow_since = "1637367065 -0800" ,
128- )
0 commit comments