From 2cff72748c72a45b5800c2d182b6d36be03074de Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Tue, 9 Dec 2025 12:22:10 +0000 Subject: [PATCH] fix: Add executable to runfiles of tools --- multitool/private/hub_repo_tool_template/tool.bzl.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/multitool/private/hub_repo_tool_template/tool.bzl.template b/multitool/private/hub_repo_tool_template/tool.bzl.template index c55b71a..5af0978 100644 --- a/multitool/private/hub_repo_tool_template/tool.bzl.template +++ b/multitool/private/hub_repo_tool_template/tool.bzl.template @@ -8,7 +8,10 @@ def _tool_impl(ctx): toolchain = ctx.toolchains[_TOOLCHAIN_TYPE] output = ctx.actions.declare_file(ctx.label.name + toolchain.ext) ctx.actions.symlink(output = output, target_file = toolchain.executable) - return [DefaultInfo(executable = output)] + return [DefaultInfo( + executable = output, + runfiles = ctx.runfiles(files = [toolchain.executable]) + )] tool = rule(executable = True, implementation = _tool_impl, toolchains = [_TOOLCHAIN_TYPE])