2929 "//skylib:zip.bzl" ,
3030 _zip_tools = "tools" ,
3131)
32+ load (
33+ "//skylib:docker.bzl" ,
34+ "docker_path" ,
35+ )
3236
3337def _extract_impl (
3438 ctx ,
@@ -79,7 +83,7 @@ def _extract_impl(
7983 "%{commands}" : _process_commands (commands ),
8084 "%{docker_flags}" : " " .join (toolchain_info .docker_flags ),
8185 "%{docker_run_flags}" : " " .join (docker_run_flags ),
82- "%{docker_tool_path}" : toolchain_info . tool_path ,
86+ "%{docker_tool_path}" : docker_path ( toolchain_info ) ,
8387 "%{extract_file}" : extract_file ,
8488 "%{image_id_extractor_path}" : ctx .executable ._extract_image_id .path ,
8589 "%{image_tar}" : image .path ,
@@ -196,7 +200,7 @@ def _commit_impl(
196200 output = image_utils ,
197201 substitutions = {
198202 "%{docker_flags}" : " " .join (toolchain_info .docker_flags ),
199- "%{docker_tool_path}" : toolchain_info . tool_path ,
203+ "%{docker_tool_path}" : docker_path ( toolchain_info ) ,
200204 },
201205 is_executable = True ,
202206 )
@@ -209,7 +213,7 @@ def _commit_impl(
209213 "%{commands}" : _process_commands (commands ),
210214 "%{docker_flags}" : " " .join (toolchain_info .docker_flags ),
211215 "%{docker_run_flags}" : " " .join (docker_run_flags ),
212- "%{docker_tool_path}" : toolchain_info . tool_path ,
216+ "%{docker_tool_path}" : docker_path ( toolchain_info ) ,
213217 "%{image_id_extractor_path}" : ctx .executable ._extract_image_id .path ,
214218 "%{image_tar}" : image .path ,
215219 "%{output_image}" : "bazel/%s:%s" % (
@@ -344,7 +348,7 @@ def _commit_layer_impl(
344348 output = image_utils ,
345349 substitutions = {
346350 "%{docker_flags}" : " " .join (toolchain_info .docker_flags ),
347- "%{docker_tool_path}" : toolchain_info . tool_path ,
351+ "%{docker_tool_path}" : docker_path ( toolchain_info ) ,
348352 },
349353 is_executable = True ,
350354 )
@@ -370,7 +374,7 @@ def _commit_layer_impl(
370374 "%{commands}" : _process_commands (commands ),
371375 "%{docker_flags}" : " " .join (toolchain_info .docker_flags ),
372376 "%{docker_run_flags}" : " " .join (docker_run_flags ),
373- "%{docker_tool_path}" : toolchain_info . tool_path ,
377+ "%{docker_tool_path}" : docker_path ( toolchain_info ) ,
374378 "%{env_file_path}" : env_file .path ,
375379 "%{image_id_extractor_path}" : ctx .executable ._extract_image_id .path ,
376380 "%{image_last_layer_extractor_path}" : ctx .executable ._last_layer_extractor_tool .path ,
0 commit comments