Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for --incompatible_struct_has_no_methods switch #406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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