File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ workspace(
44
55load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" , "http_file" )
66
7+ # Workaround for: https://github.com/bazel-contrib/bazel-lib/issues/968.
8+ # Override toolchain for tar on windows.
9+ register_toolchains (
10+ "//bazel/tar-toolchain:windows_tar_system_toolchain" ,
11+ )
12+
713NODE_VERSION = "18.20.0"
814
915# The PKG rules are needed to build tar packages for integration tests. The builtin
Original file line number Diff line number Diff line change 1+ load ("@aspect_bazel_lib//lib/private:tar_toolchain.bzl" , "tar_toolchain" )
2+
3+ tar_toolchain (
4+ name = "system_tar_exec" ,
5+ binary = "tar_system.bat" ,
6+ )
7+
8+ toolchain (
9+ name = "windows_tar_system_toolchain" ,
10+ exec_compatible_with = ["@platforms//os:windows" ],
11+ toolchain = ":system_tar_exec" ,
12+ toolchain_type = "@aspect_bazel_lib//lib:tar_toolchain_type" ,
13+ )
Original file line number Diff line number Diff line change 1+ @ ECHO OFF
2+
3+ if exist " C:\Program Files\Git\bin\bash.exe" (
4+ set " BASH = C:\Program Files\Git\bin\bash.exe"
5+ )
6+
7+ " %BASH% " -c " tar %* "
You can’t perform that action at this time.
0 commit comments