Skip to content

Commit 8da30c9

Browse files
Remove use of struct.to_json() (#936)
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.
1 parent 01925fc commit 8da30c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/framework/vfs_overlay.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def make_vfsoverlay(ctx, hdrs, module_map, private_hdrs, has_swift, swiftmodules
426426
"contents": roots,
427427
}],
428428
}
429-
vfsoverlay_yaml = struct(**vfsoverlay_object).to_json()
429+
vfsoverlay_yaml = json.encode(vfsoverlay_object)
430430
ctx.actions.write(
431431
content = vfsoverlay_yaml,
432432
output = output,

0 commit comments

Comments
 (0)