From 20cab2955318ed3dfd8a5cd806f42f3de1a8c173 Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Mon, 5 Oct 2026 21:06:30 +0200 Subject: [PATCH] fix(py_console_script_binary): only create _script_gen for the exec cfg Without this, `py_console_script_gen` exists for both the target and exec config which causes issues when cross-compiling. --- python/private/py_console_script_gen.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/python/private/py_console_script_gen.bzl b/python/private/py_console_script_gen.bzl index de016036b2..091193d410 100644 --- a/python/private/py_console_script_gen.bzl +++ b/python/private/py_console_script_gen.bzl @@ -77,6 +77,7 @@ py_console_script_gen = rule( "entry_points_txt": attr.label( doc = "The filegroup to search for entry_points.txt.", mandatory = True, + cfg = "exec", ), "out": attr.output( doc = "Output file location.",