Skip to content

Commit

Permalink
Prepare for --incompatible_struct_has_no_methods switch (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mering authored Dec 15, 2024
1 parent 19d0a44 commit 35b8fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros2/interfaces.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _run_adapter(ctx, package_name, srcs):
adapter_arguments_file = ctx.actions.declare_file(
"{}/rosidl_adapter_args.json".format(package_name),
)
ctx.actions.write(adapter_arguments_file, adapter_arguments.to_json())
ctx.actions.write(adapter_arguments_file, json.encode(adapter_arguments))
adapter_map = ctx.actions.declare_file(
"{}/rosidl_adapter_map.idls".format(package_name),
)
Expand Down Expand Up @@ -192,7 +192,7 @@ def run_generator(
template_dir = generator_templates[0].dirname,
target_dependencies = [], # TODO(mvukov) Do we need this?
)
ctx.actions.write(generator_arguments_file, generator_arguments.to_json())
ctx.actions.write(generator_arguments_file, json.encode(generator_arguments))

generator_cmd_args = ctx.actions.args()
generator_cmd_args.add(
Expand Down

0 comments on commit 35b8fe9

Please sign in to comment.