File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 3232
3333module (
3434 name = "googletest" ,
35- version = "1.15.0 " ,
35+ version = "1.15.1 " ,
3636 compatibility_level = 1 ,
3737)
3838
@@ -51,11 +51,19 @@ bazel_dep(name = "re2",
5151 version = "2024-07-02" )
5252
5353bazel_dep (name = "rules_python" ,
54- version = "0.29.0" )
54+ version = "0.34.0" ,
55+ dev_dependency = True )
5556
57+ # https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
58+ python = use_extension (
59+ "@rules_python//python/extensions:python.bzl" ,
60+ "python" ,
61+ dev_dependency = True
62+ )
63+
64+ python .toolchain (python_version = "3.12" ,
65+ is_default = True ,
66+ ignore_root_user_error = True )
5667
5768fake_fuchsia_sdk = use_repo_rule ("//:fake_fuchsia_sdk.bzl" , "fake_fuchsia_sdk" )
5869fake_fuchsia_sdk (name = "fuchsia_sdk" )
59-
60- # https://github.com/bazelbuild/rules_python/blob/main/BZLMOD_SUPPORT.md#default-toolchain-is-not-the-local-system-python
61- register_toolchains ("@bazel_tools//tools/python:autodetecting_toolchain" )
Original file line number Diff line number Diff line change @@ -46,8 +46,13 @@ RMDIR /S /Q cmake_msvc2022
4646:: ----------------------------------------------------------------------------
4747:: Bazel
4848
49+ :: The default home directory on Kokoro is a long path which causes errors
50+ :: because of Windows limitations on path length.
51+ :: --output_user_root=C:\tmp causes Bazel to use a shorter path.
4952SET BAZEL_VS = C:\Program Files\Microsoft Visual Studio\2022\Community
50- %BAZEL_EXE% test ... ^
53+ %BAZEL_EXE% ^
54+ --output_user_root=C:\tmp ^
55+ test ... ^
5156 --compilation_mode=dbg ^
5257 --copt=/std:c++14 ^
5358 --copt=/WX ^
You can’t perform that action at this time.
0 commit comments