@@ -5,12 +5,14 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
55# Group the sources of the library so that CMake rule have access to it
66all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
77
8+ # Corrected: Using official GitHub release URL
89http_archive (
910 name = "rules_python" ,
11+ sha256 = "3b8b4cdc991bc9def8833d118e4c850f1b7498b3d65d5698eea92c3528b8cf2c" ,
1012 strip_prefix = "rules_python-0.30.0" ,
11- url = "https://wq-boost.oss-cn-beijing.aliyuncs.com /rules_python-0.30.0.tar.gz" ,
13+ url = "https://github.com/bazelbuild/rules_python/releases/download/0.30.0 /rules_python-0.30.0.tar.gz" ,
1214)
13- # if missing it will trig the error message of the OP
15+
1416load ("@rules_python//python:repositories.bzl" , "py_repositories" , "python_register_toolchains" )
1517py_repositories ()
1618
@@ -20,7 +22,7 @@ python_register_toolchains(
2022 ignore_root_user_error = True ,
2123)
2224
23- # Rule repository
25+ # Correct: This is the only, correct definition of rules_foreign_cc
2426http_archive (
2527 name = "rules_foreign_cc" ,
2628 strip_prefix = "rules_foreign_cc-87df6b25f6c009883da87f07ea680d38780a4d6f" ,
@@ -29,31 +31,9 @@ http_archive(
2931)
3032
3133load ("@rules_foreign_cc//:workspace_definitions.bzl" , "rules_foreign_cc_dependencies" )
32-
33- # Call this function from the WORKSPACE file to initialize rules_foreign_cc
34- # dependencies and let neccesary code generation happen
35- # (Code generation is needed to support different variants of the C++ Starlark API.).
36- #
37- # Args:
38- # native_tools_toolchains: pass the toolchains for toolchain types
39- # '@rules_foreign_cc//tools/build_defs:make_toolchain',
40- # '@rules_foreign_cc//tools/build_defs:cmake_toolchain' and
41- # '@rules_foreign_cc//tools/build_defs:ninja_toolchain' with the needed platform constraints.
42- # If you do not pass anything, registered default toolchains will be selected (see below).
43- #
44- # register_default_tools: if True, the make, cmake and ninja toolchains, calling corresponding
45- # preinstalled binaries by name (make, cmake, ninja) will be registered after
46- # 'native_tools_toolchains' without any platform constraints.
47- # The default is True.
4834rules_foreign_cc_dependencies ()
4935
50-
51- http_archive (
52- name = "rules_foreign_cc" ,
53- strip_prefix = "opencensus-proto-0.3.0/src" ,
54- urls = ["https://github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz" ],
55- sha256 = "b7e13f0b4259e80c3070b583c2f39e53153085a6918718b1c710caf7037572b0" ,
56- )
36+ # REMOVED the second, incorrect definition of rules_foreign_cc that pointed to opencensus-proto.
5737
5838http_archive (
5939 name = "pybind11_bazel" ,
@@ -62,14 +42,13 @@ http_archive(
6242 sha256 = "9df284330336958c837fb70dc34c0a6254dac52a5c983b3373a8c2bbb79ac35e" ,
6343)
6444
65- # We still require the pybind library.
45+ # Corrected: Using official GitHub URL and uncommented sha256
6646http_archive (
67- name = "pybind11" ,
68- build_file = "@pybind11_bazel//:pybind11-BUILD.bazel" ,
69- strip_prefix = "pybind11-2.13.6" ,
70- # urls = ["https://github.com/pybind/pybind11/archive/v2.13.6.zip"],
71- urls = ["https://wq-boost.oss-cn-beijing.aliyuncs.com/pybind11-2.13.6.zip" ],
72- # sha256 = "cdbe326d357f18b83d10322ba202d69f11b2f49e2d87ade0dc2be0c5c34f8e2a",
47+ name = "pybind11" ,
48+ build_file = "@pybind11_bazel//:pybind11-BUILD.bazel" ,
49+ sha256 = "cdbe326d357f18b83d10322ba202d69f11b2f49e2d87ade0dc2be0c5c34f8e2a" ,
50+ strip_prefix = "pybind11-2.13.6" ,
51+ urls = ["https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.zip" ],
7352)
7453
7554http_archive (
@@ -88,16 +67,11 @@ http_archive(
8867 sha256 = "2a0b5fe5119ec973a0c1966bfc4bd7ed39dbce1cb6d749064af9121fe971936f" ,
8968)
9069
91- # gloo source code repository
70+ # Corrected: Using up-to-date official gloo repository
9271http_archive (
93- name = "gloo" ,
94- build_file_content = all_content ,
95- strip_prefix = "gloo-add3f38c6a2715e9387f4966b4fc3d92bb786adb " ,
96- urls = ["https://github.com/Ezra-H /gloo/archive/add3f38c6a2715e9387f4966b4fc3d92bb786adb .tar.gz" ],
97- sha256 = "a146136bb6efdac0e3ede952d09aec44b771a87ebc713bd815c3a90a7428c908 " ,
72+ name = "gloo" ,
73+ build_file_content = all_content ,
74+ strip_prefix = "gloo-0.30.4 " ,
75+ urls = ["https://github.com/facebookincubator /gloo/archive/refs/tags/v0.30.4 .tar.gz" ],
76+ sha256 = "2317c2f1505553e144a82a0b784df17d7e3fb6334a170562d475c820f4c0b432 " ,
9877)
99-
100- # load("@pybind11_bazel//:python_configure.bzl", "python_configure_pybind")
101- # python_configure_pybind(name = "local_config_python")
102-
103-
0 commit comments