@@ -24,28 +24,23 @@ http_archive(
2424 sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca" ,
2525)
2626
27- # Install version 0.9.0 of rules_foreign_cc, as default version causes an
28- # invalid escape sequence error to be raised, which can't be avoided with
29- # the --incompatible_restrict_string_escapes=false flag (flag was removed in
30- # Bazel 5.0).
31- RULES_FOREIGN_CC_VERSION = "0.9.0"
27+ # Install version 0.12.0 of rules_foreign_cc
28+ RULES_FOREIGN_CC_VERSION = "0.12.0"
3229http_archive (
3330 name = "rules_foreign_cc" ,
34- sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51 " ,
31+ sha256 = "a2e6fb56e649c1ee79703e99aa0c9d13c6cc53c8d7a0cbb8797ab2888bbc99a3 " ,
3532 strip_prefix = "rules_foreign_cc-%s" % RULES_FOREIGN_CC_VERSION ,
3633 url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/%s.tar.gz" % RULES_FOREIGN_CC_VERSION ,
37- patch_tool = "patch" ,
38- patches = ["//ml_metadata/third_party:rules_foreign_cc.patch" ,],
3934)
4035
4136load ("@rules_foreign_cc//foreign_cc:repositories.bzl" , "rules_foreign_cc_dependencies" )
4237rules_foreign_cc_dependencies ()
4338
4439http_archive (
4540 name = "com_google_absl" ,
46- urls = ["https://github.com/abseil/abseil-cpp/archive/940c06c25d2953f44310b68eb8aab6114dba11fb.zip " ],
47- strip_prefix = "abseil-cpp-940c06c25d2953f44310b68eb8aab6114dba11fb " ,
48- sha256 = "0e800799aa64d0b4d354f3ff317bbd5fbf42f3a522ab0456bb749fc8d3b67415 " ,
41+ urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.tar.gz " ],
42+ strip_prefix = "abseil-cpp-20230802.1 " ,
43+ sha256 = "987ce98f02eefbaf930d6e38ab16aa05737234d7afbab2d5c4ea7adbe50c28ed " ,
4944)
5045
5146http_archive (
@@ -60,18 +55,18 @@ http_archive(
6055http_archive (
6156 name = "org_sqlite" ,
6257 build_file = clean_dep ("//ml_metadata/third_party:sqlite.BUILD" ),
63- sha256 = "87775784f8b22d0d0f1d7811870d39feaa7896319c7c20b849a4181c5a50609b " ,
64- strip_prefix = "sqlite-amalgamation-3390200 " ,
58+ sha256 = "aa73d8748095808471deaa8e6f34aa700e37f2f787f4425744f53fdd15a89c40 " ,
59+ strip_prefix = "sqlite-amalgamation-3470200 " ,
6560 urls = [
66- "https://www.sqlite.org/2022 /sqlite-amalgamation-3390200 .zip" ,
61+ "https://www.sqlite.org/2024 /sqlite-amalgamation-3470200 .zip" ,
6762 ],
6863)
6964
7065http_archive (
7166 name = "com_google_googletest" ,
72- sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2 " ,
73- strip_prefix = "googletest-release-1.12.1 " ,
74- urls = ["https://github.com/google/googletest/archive/refs/tags/release-1.12.1 .tar.gz" ],
67+ sha256 = "7b42dc4b2106035276f8f0a5019c929a77d9c606ab43b8e0e1c4b7cc27c8e5ce " ,
68+ strip_prefix = "googletest-release-1.15.2 " ,
69+ urls = ["https://github.com/google/googletest/archive/refs/tags/release-1.15.2 .tar.gz" ],
7570)
7671
7772http_archive (
@@ -84,13 +79,13 @@ http_archive(
8479 sha256 = "6281aa4eeecb9e932d7091f99872e7b26fa6aacece49c15ce5b14af2b7ec050f" ,
8580)
8681
87- # 1.5.0
82+ # 1.7.1
8883http_archive (
8984 name = "bazel_skylib" ,
90- sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94 " ,
85+ sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f " ,
9186 urls = [
92- "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0 /bazel-skylib-1.5.0 .tar.gz" ,
93- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0 /bazel-skylib-1.5.0 .tar.gz" ,
87+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1 /bazel-skylib-1.7.1 .tar.gz" ,
88+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1 /bazel-skylib-1.7.1 .tar.gz" ,
9489 ],
9590)
9691
@@ -117,13 +112,26 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
117112
118113protobuf_deps ()
119114
115+ # Override upb from protobuf_deps() to apply our patch
116+ http_archive (
117+ name = "upb" ,
118+ sha256 = "017a7e8e4e842d01dba5dc8aa316323eee080cd1b75986a7d1f94d87220e6502" ,
119+ strip_prefix = "upb-e4635f223e7d36dfbea3b722a4ca4807a7e882e2" ,
120+ urls = [
121+ "https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz" ,
122+ "https://github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz" ,
123+ ],
124+ patches = ["//ml_metadata/third_party:upb.patch" ],
125+ patch_args = ["-p0" ],
126+ )
127+
120128# Needed by Protobuf.
121129http_archive (
122130 name = "zlib" ,
123131 build_file = "@com_google_protobuf//:third_party/zlib.BUILD" ,
124- sha256 = "d8688496ea40fb61787500e863cc63c9afcbc524468cedeb478068924eb54932 " ,
125- strip_prefix = "zlib-1.2.12 " ,
126- urls = ["https://github.com/madler/zlib/archive/v1.2.12 .tar.gz" ],
132+ sha256 = "17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c " ,
133+ strip_prefix = "zlib-1.3.1 " ,
134+ urls = ["https://github.com/madler/zlib/archive/v1.3.1 .tar.gz" ],
127135)
128136
129137http_archive (
@@ -136,9 +144,10 @@ http_archive(
136144http_archive (
137145 name = "pybind11" ,
138146 urls = [
139- "https://github.com/pybind/pybind11/archive/v2.10.1 .tar.gz" ,
147+ "https://github.com/pybind/pybind11/archive/v2.13.6 .tar.gz" ,
140148 ],
141- strip_prefix = "pybind11-2.10.1" ,
149+ sha256 = "e08cb87f4773da97fa7b5f035de8763abc656d87d5773e62f6da0587d1f0ec20" ,
150+ strip_prefix = "pybind11-2.13.6" ,
142151 build_file = "@pybind11_bazel//:pybind11.BUILD" ,
143152)
144153
@@ -247,33 +256,7 @@ http_archive(
247256 url = "https://github.com/gflags/gflags/archive/a738fdf9338412f83ab3f26f31ac11ed3f3ec4bd.zip" ,
248257)
249258
250- ZETASQL_COMMIT = "ac37cf5c0d80b5605176fc0f29e87b12f00be693" # 08/10/2022
251- http_archive (
252- name = "com_google_zetasql" ,
253- urls = ["https://github.com/google/zetasql/archive/%s.zip" % ZETASQL_COMMIT ],
254- strip_prefix = "googlesql-%s" % ZETASQL_COMMIT ,
255- #patches = ["//ml_metadata/third_party:zetasql.patch"],
256- sha256 = '86f81591ab5ec20457a5394eb2c5c981e6f6c89f4c49c211d096c3acffec1eb1'
257- )
258-
259- load ("@com_google_zetasql//bazel:zetasql_deps_step_1.bzl" , "zetasql_deps_step_1" )
260- zetasql_deps_step_1 ()
261- load ("@com_google_zetasql//bazel:zetasql_deps_step_2.bzl" , "zetasql_deps_step_2" )
262- zetasql_deps_step_2 (
263- analyzer_deps = True ,
264- evaluator_deps = True ,
265- tools_deps = False ,
266- java_deps = False ,
267- testing_deps = False )
268-
269- # This is part of what zetasql_deps_step_3() does.
270- load ("@com_google_googleapis//:repository_rules.bzl" , "switched_rules_by_language" )
271- switched_rules_by_language (
272- name = "com_google_googleapis_imports" ,
273- cc = True ,
274- )
275-
276-
259+ # ZetaSQL removed - not needed for core functionality
277260
278261# Please add all new ML Metadata dependencies in workspace.bzl.
279262load ("//ml_metadata:workspace.bzl" , "ml_metadata_workspace" )
0 commit comments