Skip to content

Commit

Permalink
Remove use of struct.to_json()
Browse files Browse the repository at this point in the history
Bazel 8 does not appear to support struct.to_json() anymore, so remove its usage in vfs_overlay. It appears this API has been around since at least 6.5 (https://bazel.build/versions/6.5.0/rules/lib/core/json), so changing to it shouldn't be an issue.
  • Loading branch information
nataliejameson committed Jan 13, 2025
1 parent 01925fc commit e160172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/framework/vfs_overlay.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def make_vfsoverlay(ctx, hdrs, module_map, private_hdrs, has_swift, swiftmodules
"contents": roots,
}],
}
vfsoverlay_yaml = struct(**vfsoverlay_object).to_json()
vfsoverlay_yaml = json.encode(vfsoverlay_object)
ctx.actions.write(
content = vfsoverlay_yaml,
output = output,
Expand Down

0 comments on commit e160172

Please sign in to comment.