Skip to content

Commit 5a36aaa

Browse files
committed
bazel: update deps
* don't use repo name * Bump abseil-cpp to 20250512.0 * Bump Protobuf to 31.0 * Bump benchmark to 1.9.2 * Bump googletest to 1.17.0
1 parent 1e06338 commit 5a36aaa

40 files changed

Lines changed: 198 additions & 198 deletions

File tree

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
load("@bazel_gazelle//:def.bzl", "gazelle")
14+
load("@gazelle//:def.bzl", "gazelle")
1515
load("@rules_license//rules:license.bzl", "license")
1616

1717
# Expose license for external usage through bazel.

MODULE.bazel

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ module(
1313
)
1414

1515
# see https://registry.bazel.build/
16-
bazel_dep(name = "abseil-cpp", version = "20250127.1")
16+
bazel_dep(name = "abseil-cpp", version = "20250512.0")
1717
bazel_dep(name = "bazel_skylib", version = "1.7.1")
1818
bazel_dep(name = "bzip2", version = "1.0.8.bcr.2")
1919
bazel_dep(name = "contrib_rules_jvm", version = "0.28.0")
2020
bazel_dep(name = "eigen", version = "3.4.0.bcr.3")
21-
bazel_dep(name = "fuzztest", version = "20250214.0", repo_name = "com_google_fuzztest")
21+
bazel_dep(name = "fuzztest", version = "20250214.0")
2222
bazel_dep(name = "riegeli", version = "0.0.0-20241218-3385e3c") # otherwise fuzztest use a borken version
23-
bazel_dep(name = "gazelle", version = "0.42.0", repo_name = "bazel_gazelle")
23+
bazel_dep(name = "gazelle", version = "0.43.0")
2424
bazel_dep(name = "glpk", version = "5.0.bcr.3")
25-
bazel_dep(name = "google_benchmark", version = "1.9.1", repo_name = "com_google_benchmark")
26-
bazel_dep(name = "googletest", version = "1.16.0", repo_name = "com_google_googletest")
25+
bazel_dep(name = "google_benchmark", version = "1.9.2")
26+
bazel_dep(name = "googletest", version = "1.17.0")
2727
bazel_dep(name = "highs", version = "1.10.0")
2828
bazel_dep(name = "platforms", version = "0.0.11")
29-
bazel_dep(name = "protobuf", version = "30.2", repo_name = "com_google_protobuf")
29+
bazel_dep(name = "protobuf", version = "31.0")
3030
bazel_dep(name = "pybind11_abseil", version = "202402.0")
3131
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
3232
bazel_dep(name = "pybind11_protobuf", version = "0.0.0-20240524-1d7a729")
33-
bazel_dep(name = "re2", version = "2024-07-02.bcr.1", repo_name = "com_google_re2")
33+
bazel_dep(name = "re2", version = "2024-07-02.bcr.1")
3434
bazel_dep(name = "rules_cc", version = "0.1.1")
35-
bazel_dep(name = "rules_go", version = "0.53.0", repo_name = "io_bazel_rules_go")
35+
bazel_dep(name = "rules_go", version = "0.53.0")
3636
bazel_dep(name = "rules_java", version = "8.11.0")
3737
bazel_dep(name = "rules_jvm_external", version = "6.7")
3838
bazel_dep(name = "rules_license", version = "1.0.0")
@@ -131,10 +131,10 @@ maven.install(
131131
)
132132
use_repo(maven, "maven")
133133

134-
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
134+
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
135135
go_sdk.download(version = "1.22.4")
136136

137-
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
137+
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
138138
go_deps.module(
139139
path = "github.com/golang/glog",
140140
sum = "h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY=",

deps.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
load("@bazel_gazelle//:deps.bzl", "go_repository")
14+
load("@gazelle//:deps.bzl", "go_repository")
1515

1616
def go_dependencies():
1717
go_repository(

examples/contrib/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ cc_binary(
1111
"@abseil-cpp//absl/container:btree",
1212
"@abseil-cpp//absl/flags:flag",
1313
"@abseil-cpp//absl/strings",
14-
"@com_google_protobuf//:protobuf",
14+
"@protobuf//:protobuf",
1515
],
1616
)

examples/cpp/BUILD.bazel

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cc_binary(
3333
"@abseil-cpp//absl/container:btree",
3434
"@abseil-cpp//absl/flags:flag",
3535
"@abseil-cpp//absl/strings",
36-
"@com_google_protobuf//:protobuf",
36+
"@protobuf//:protobuf",
3737
],
3838
)
3939

@@ -52,7 +52,7 @@ cc_test(
5252
"//ortools/packing:multiple_dimensions_bin_packing_cc_proto",
5353
"//ortools/sat:cp_model",
5454
"@abseil-cpp//absl/flags:flag",
55-
"@com_google_protobuf//:protobuf",
55+
"@protobuf//:protobuf",
5656
],
5757
)
5858

@@ -200,7 +200,7 @@ cc_binary(
200200
"@abseil-cpp//absl/flags:flag",
201201
"@abseil-cpp//absl/flags:parse",
202202
"@abseil-cpp//absl/strings:str_format",
203-
"@com_google_protobuf//:protobuf",
203+
"@protobuf//:protobuf",
204204
],
205205
)
206206

@@ -216,7 +216,7 @@ cc_test(
216216
"@abseil-cpp//absl/flags:flag",
217217
"@abseil-cpp//absl/flags:parse",
218218
"@abseil-cpp//absl/strings:str_format",
219-
"@com_google_protobuf//:protobuf",
219+
"@protobuf//:protobuf",
220220
],
221221
)
222222

@@ -232,7 +232,7 @@ cc_binary(
232232
"//ortools/sat:cp_model",
233233
"//ortools/sat:cp_model_solver",
234234
"@abseil-cpp//absl/flags:flag",
235-
"@com_google_protobuf//:protobuf",
235+
"@protobuf//:protobuf",
236236
],
237237
)
238238

@@ -250,7 +250,7 @@ cc_test(
250250
"//ortools/packing:multiple_dimensions_bin_packing_cc_proto",
251251
"//ortools/sat:cp_model",
252252
"@abseil-cpp//absl/flags:flag",
253-
"@com_google_protobuf//:protobuf",
253+
"@protobuf//:protobuf",
254254
],
255255
)
256256

@@ -405,7 +405,7 @@ cc_binary(
405405
"//ortools/util:filelineiter",
406406
"@abseil-cpp//absl/flags:flag",
407407
"@abseil-cpp//absl/strings",
408-
"@com_google_protobuf//:protobuf",
408+
"@protobuf//:protobuf",
409409
],
410410
)
411411

@@ -433,7 +433,7 @@ cc_test(
433433
"//ortools/util:filelineiter",
434434
"@abseil-cpp//absl/flags:flag",
435435
"@abseil-cpp//absl/strings",
436-
"@com_google_protobuf//:protobuf",
436+
"@protobuf//:protobuf",
437437
],
438438
)
439439

@@ -607,7 +607,7 @@ cc_binary(
607607
"//ortools/routing",
608608
"//ortools/util:random_engine",
609609
"@abseil-cpp//absl/strings",
610-
"@com_google_protobuf//:protobuf",
610+
"@protobuf//:protobuf",
611611
],
612612
)
613613

@@ -623,7 +623,7 @@ cc_binary(
623623
"@abseil-cpp//absl/flags:flag",
624624
"@abseil-cpp//absl/strings",
625625
"@abseil-cpp//absl/strings:str_format",
626-
"@com_google_protobuf//:protobuf",
626+
"@protobuf//:protobuf",
627627
],
628628
)
629629

@@ -766,7 +766,7 @@ cc_binary(
766766
"@abseil-cpp//absl/status",
767767
"@abseil-cpp//absl/strings",
768768
"@abseil-cpp//absl/strings:str_format",
769-
"@com_google_protobuf//:protobuf",
769+
"@protobuf//:protobuf",
770770
],
771771
)
772772

@@ -787,7 +787,7 @@ cc_test(
787787
"@abseil-cpp//absl/status",
788788
"@abseil-cpp//absl/strings",
789789
"@abseil-cpp//absl/strings:str_format",
790-
"@com_google_protobuf//:protobuf",
790+
"@protobuf//:protobuf",
791791
],
792792
)
793793

@@ -943,7 +943,7 @@ cc_binary(
943943
"//ortools/util:qap_reader",
944944
"@abseil-cpp//absl/flags:flag",
945945
"@abseil-cpp//absl/strings",
946-
"@com_google_protobuf//:protobuf",
946+
"@protobuf//:protobuf",
947947
],
948948
)
949949

@@ -977,7 +977,7 @@ cc_binary(
977977
"@abseil-cpp//absl/flags:flag",
978978
"@abseil-cpp//absl/flags:parse",
979979
"@abseil-cpp//absl/random",
980-
"@com_google_protobuf//:protobuf",
980+
"@protobuf//:protobuf",
981981
],
982982
)
983983

ortools/algorithms/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ cc_test(
8686
"@abseil-cpp//absl/random:distributions",
8787
"@abseil-cpp//absl/strings:str_format",
8888
"@abseil-cpp//absl/time",
89-
"@com_google_benchmark//:benchmark",
89+
"@google_benchmark//:benchmark",
9090
],
9191
)
9292

@@ -127,7 +127,7 @@ cc_test(
127127
"@abseil-cpp//absl/random:bit_gen_ref",
128128
"@abseil-cpp//absl/random:distributions",
129129
"@abseil-cpp//absl/types:span",
130-
"@com_google_benchmark//:benchmark",
130+
"@google_benchmark//:benchmark",
131131
],
132132
)
133133

@@ -141,7 +141,7 @@ cc_library(
141141
"@abseil-cpp//absl/random",
142142
"@abseil-cpp//absl/random:distributions",
143143
"@abseil-cpp//absl/types:span",
144-
"@com_google_protobuf//:protobuf",
144+
"@protobuf//:protobuf",
145145
],
146146
)
147147

@@ -439,6 +439,6 @@ cc_test(
439439
"@abseil-cpp//absl/random:distributions",
440440
"@abseil-cpp//absl/status",
441441
"@abseil-cpp//absl/status:statusor",
442-
"@com_google_benchmark//:benchmark",
442+
"@google_benchmark//:benchmark",
443443
],
444444
)

ortools/base/BUILD.bazel

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ cc_test(
162162
"@abseil-cpp//absl/random",
163163
"@abseil-cpp//absl/random:bit_gen_ref",
164164
"@abseil-cpp//absl/random:distributions",
165-
"@com_google_benchmark//:benchmark",
166-
"@com_google_googletest//:gtest_main",
165+
"@google_benchmark//:benchmark",
166+
"@googletest//:gtest_main",
167167
],
168168
)
169169

@@ -200,7 +200,7 @@ cc_test(
200200
deps = [
201201
":dump_vars",
202202
"@abseil-cpp//absl/strings",
203-
"@com_google_googletest//:gtest_main",
203+
"@googletest//:gtest_main",
204204
],
205205
)
206206

@@ -253,7 +253,7 @@ cc_library(
253253
"@abseil-cpp//absl/status",
254254
"@abseil-cpp//absl/strings",
255255
"@bzip2//:bz2",
256-
"@com_google_protobuf//:protobuf",
256+
"@protobuf//:protobuf",
257257
"@zlib",
258258
],
259259
)
@@ -264,10 +264,10 @@ cc_library(
264264
hdrs = ["fuzztest.h"],
265265
deps = [
266266
"@abseil-cpp//absl/log:check",
267-
"@com_google_fuzztest//fuzztest",
268-
"@com_google_fuzztest//fuzztest:googletest_fixture_adapter",
269-
"@com_google_fuzztest//fuzztest:init_fuzztest",
270-
"@com_google_protobuf//:protobuf",
267+
"@fuzztest//fuzztest",
268+
"@fuzztest//fuzztest:googletest_fixture_adapter",
269+
"@fuzztest//fuzztest:init_fuzztest",
270+
"@protobuf//:protobuf",
271271
],
272272
)
273273

@@ -277,15 +277,15 @@ cc_library(
277277
deps = [
278278
":message_matchers",
279279
":status_matchers",
280-
"@com_google_googletest//:gtest",
280+
"@googletest//:gtest",
281281
],
282282
)
283283

284284
cc_library(
285285
name = "gmock_main",
286286
deps = [
287287
":gmock",
288-
"@com_google_googletest//:gtest_main",
288+
"@googletest//:gtest_main",
289289
],
290290
)
291291

@@ -423,8 +423,8 @@ cc_library(
423423
hdrs = ["message_matchers.h"],
424424
deps = [
425425
"@abseil-cpp//absl/strings",
426-
"@com_google_googletest//:gtest",
427-
"@com_google_protobuf//:protobuf",
426+
"@googletest//:gtest",
427+
"@protobuf//:protobuf",
428428
],
429429
)
430430

@@ -459,7 +459,7 @@ cc_library(
459459
hdrs = ["parse_text_proto.h"],
460460
deps = [
461461
"@abseil-cpp//absl/log:check",
462-
"@com_google_protobuf//:protobuf",
462+
"@protobuf//:protobuf",
463463
],
464464
)
465465

@@ -469,7 +469,7 @@ cc_library(
469469
deps = [
470470
":gmock",
471471
"@abseil-cpp//absl/log:check",
472-
"@com_google_protobuf//:protobuf",
472+
"@protobuf//:protobuf",
473473
],
474474
)
475475

@@ -495,7 +495,7 @@ cc_library(
495495
":timer",
496496
"@abseil-cpp//absl/status",
497497
"@abseil-cpp//absl/status:statusor",
498-
"@com_google_protobuf//:protobuf",
498+
"@protobuf//:protobuf",
499499
],
500500
)
501501

@@ -504,7 +504,7 @@ cc_library(
504504
hdrs = ["proto_enum_utils.h"],
505505
deps = [
506506
"@abseil-cpp//absl/types:span",
507-
"@com_google_protobuf//:protobuf",
507+
"@protobuf//:protobuf",
508508
],
509509
)
510510

@@ -523,7 +523,7 @@ cc_library(
523523
":logging",
524524
"@abseil-cpp//absl/status:statusor",
525525
"@abseil-cpp//absl/strings",
526-
"@com_google_protobuf//:protobuf",
526+
"@protobuf//:protobuf",
527527
"@zlib",
528528
],
529529
)
@@ -558,7 +558,7 @@ cc_library(
558558
"@abseil-cpp//absl/status",
559559
"@abseil-cpp//absl/status:statusor",
560560
"@abseil-cpp//absl/strings",
561-
"@com_google_googletest//:gtest",
561+
"@googletest//:gtest",
562562
],
563563
)
564564

@@ -605,7 +605,7 @@ cc_test(
605605
"@abseil-cpp//absl/numeric:int128",
606606
"@abseil-cpp//absl/strings",
607607
"@abseil-cpp//absl/strings:str_format",
608-
"@com_google_googletest//:gtest_main",
608+
"@googletest//:gtest_main",
609609
],
610610
)
611611

0 commit comments

Comments
 (0)