@@ -18,67 +18,96 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1818
1919def gnpsi_deps ():
2020 """Declare the third-party dependencies necessary to build gnpsi"""
21+ if not native .existing_rule ("bazel_features" ):
22+ http_archive (
23+ name = "bazel_features" ,
24+ sha256 = "af3d4fb1cf4f25942cb4a933b1ad93a0ea9fe9ee70c2af7f369fb72a67c266e5" ,
25+ strip_prefix = "bazel_features-1.21.0" ,
26+ url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.21.0/bazel_features-v1.21.0.tar.gz" ,
27+ )
28+ if not native .existing_rule ("bazel_gazelle" ):
29+ http_archive (
30+ name = "bazel_gazelle" ,
31+ sha256 = "aefbf2fc7c7616c9ed73aa3d51c77100724d5b3ce66cfa16406e8c13e87c8b52" ,
32+ urls = [
33+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.41.0/bazel-gazelle-v0.41.0.tar.gz" ,
34+ "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.41.0/bazel-gazelle-v0.41.0.tar.gz" ,
35+ ],
36+ )
37+ # Needed to make glog happy.
38+ if not native .existing_rule ("com_github_gflags_gflags" ):
39+ http_archive (
40+ name = "com_github_gflags_gflags" ,
41+ url = "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz" ,
42+ strip_prefix = "gflags-2.2.2" ,
43+ sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf" ,
44+ )
45+ if not native .existing_rule ("com_github_google_glog" ):
46+ http_archive (
47+ name = "com_github_google_glog" ,
48+ url = "https://github.com/google/glog/archive/v0.7.1.tar.gz" ,
49+ strip_prefix = "glog-0.7.1" ,
50+ sha256 = "00e4a87e87b7e7612f519a41e491f16623b12423620006f59f5688bfd8d13b08" ,
51+ )
2152 if not native .existing_rule ("com_github_grpc_grpc" ):
2253 http_archive (
2354 name = "com_github_grpc_grpc" ,
24- url = "https://github.com/grpc/grpc/archive/v1.61.0.zip" ,
25- strip_prefix = "grpc-1.61.0" ,
26- sha256 = "ba6c53c3924a1d01c663352010e0f73736bad3d99d72108e0f2b1a6466f9be20" ,
27- patch_args = ["-p1" ],
28- patches = [
29- "@com_github_openconfig_gnpsi//:bazel/patches/grpc-001-fix_file_watcher_race_condition.patch" ,
30- ],
55+ url = "https://github.com/grpc/grpc/archive/refs/tags/v1.69.0.tar.gz" ,
56+ strip_prefix = "grpc-1.69.0" ,
57+ sha256 = "cd256d91781911d46a57506978b3979bfee45d5086a1b6668a3ae19c5e77f8dc" ,
3158 )
3259 if not native .existing_rule ("com_google_absl" ):
3360 http_archive (
3461 name = "com_google_absl" ,
35- url = "https://github.com/abseil/abseil-cpp/archive/20230802.0.tar.gz" ,
36- strip_prefix = "abseil-cpp-20230802.0" ,
37- sha256 = "59d2976af9d6ecf001a81a35749a6e551a335b949d34918cfade07737b9d93c5" ,
62+ url = "https://github.com/abseil/abseil-cpp/archive/20240722.0.tar.gz" ,
63+ strip_prefix = "abseil-cpp-20240722.0" ,
64+ sha256 = "f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3" ,
65+ )
66+ if not native .existing_rule ("com_google_googleapis" ):
67+ http_archive (
68+ name = "com_google_googleapis" ,
69+ sha256 = "0513f0f40af63bd05dc789cacc334ab6cec27cc89db596557cb2dfe8919463e4" ,
70+ strip_prefix = "googleapis-fe8ba054ad4f7eca946c2d14a63c3f07c0b586a0" ,
71+ urls = ["https://github.com/googleapis/googleapis/archive/fe8ba054ad4f7eca946c2d14a63c3f07c0b586a0.tar.gz" ],
3872 )
3973 if not native .existing_rule ("com_google_googletest" ):
4074 http_archive (
4175 name = "com_google_googletest" ,
42- urls = ["https://github.com/google/googletest/archive/release-1.11.0 .tar.gz" ],
43- strip_prefix = "googletest-release-1.11.0 " ,
44- sha256 = "b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5 " ,
76+ urls = ["https://github.com/google/googletest/archive/v1.15.2 .tar.gz" ],
77+ strip_prefix = "googletest-1.15.2 " ,
78+ sha256 = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926 " ,
4579 )
4680 if not native .existing_rule ("com_google_protobuf" ):
4781 http_archive (
4882 name = "com_google_protobuf" ,
49- url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v25.2.zip" ,
50- strip_prefix = "protobuf-25.2" ,
51- sha256 = "ddd0f5271f31b549efc74eb39061e142132653d5d043071fcec265bd571e73c4" ,
83+ url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v29.3.zip" ,
84+ strip_prefix = "protobuf-29.3" ,
85+ sha256 = "85803e01f347141e16a2f770213a496f808fff9f0138c7c0e0c9dfa708b0da92" ,
86+ repo_mapping = {
87+ "@proto_bazel_features" : "@bazel_features" ,
88+ },
5289 )
53- if not native .existing_rule ("com_google_googleapis " ):
90+ if not native .existing_rule ("bazel_skylib " ):
5491 http_archive (
55- name = "com_google_googleapis" ,
56- url = "https://github.com/googleapis/googleapis/archive/f405c718d60484124808adb7fb5963974d654bb4.zip" ,
57- strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4" ,
58- sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79" ,
92+ name = "bazel_skylib" ,
93+ urls = [
94+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz" ,
95+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz" ,
96+ ],
97+ sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f" ,
5998 )
60- if not native .existing_rule ("com_github_google_glog " ):
99+ if not native .existing_rule ("io_bazel_rules_go " ):
61100 http_archive (
62- name = "com_github_google_glog" ,
63- url = "https://github.com/google/glog/archive/v0.6.0.tar.gz" ,
64- strip_prefix = "glog-0.6.0" ,
65- sha256 = "8a83bf982f37bb70825df71a9709fa90ea9f4447fb3c099e1d720a439d88bad6" ,
66- )
67-
68- # Needed to make glog happy.
69- if not native .existing_rule ("com_github_gflags_gflags" ):
70- http_archive (
71- name = "com_github_gflags_gflags" ,
72- url = "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz" ,
73- strip_prefix = "gflags-2.2.2" ,
74- sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf" ,
101+ name = "io_bazel_rules_go" ,
102+ sha256 = "0936c9bc3c4321ee372cb8f66dd972d368cb940ed01a9ba9fd7debcf0093f09b" ,
103+ urls = [
104+ "https://github.com/bazelbuild/rules_go/releases/download/v0.51.0/rules_go-v0.51.0.zip" ,
105+ ],
75106 )
76107 if not native .existing_rule ("rules_proto" ):
77108 http_archive (
78109 name = "rules_proto" ,
79- urls = [
80- "https://github.com/bazelbuild/rules_proto/archive/5.3.0-21.7.tar.gz" ,
81- ],
82- strip_prefix = "rules_proto-5.3.0-21.7" ,
83- sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd" ,
110+ sha256 = "0e5c64a2599a6e26c6a03d6162242d231ecc0de219534c38cb4402171def21e8" ,
111+ strip_prefix = "rules_proto-7.0.2" ,
112+ url = "https://github.com/bazelbuild/rules_proto/releases/download/7.0.2/rules_proto-7.0.2.tar.gz" ,
84113 )
0 commit comments