diff --git a/ros2/interfaces.bzl b/ros2/interfaces.bzl index 4d99c125..ca350a2e 100644 --- a/ros2/interfaces.bzl +++ b/ros2/interfaces.bzl @@ -178,7 +178,8 @@ def run_generator( extra_generator_args = None, extra_generated_outputs = None, mnemonic = None, - progress_message = None): + progress_message = None, + generator_env = None): generator_templates = generator_templates[DefaultInfo].files.to_list() generator_arguments_file = ctx.actions.declare_file( diff --git a/ros2/rust_interfaces.bzl b/ros2/rust_interfaces.bzl index f85d8f6f..3c971b49 100644 --- a/ros2/rust_interfaces.bzl +++ b/ros2/rust_interfaces.bzl @@ -155,6 +155,7 @@ def _rust_generator_aspect_impl(target, ctx): extra_generated_outputs = extra_generated_outputs, mnemonic = "Ros2IdlGeneratorRust", progress_message = "Generating Rust IDL interfaces for %{label}", + generator_env = {"ROS_DISTRO": "humble"}, ) # Ideally dep_variant_info could be a depset, and all dep propagation should