Skip to content

Conversation

@mattyclarkson
Copy link

one = struct(a = 1)
two = struct(b = 2)
overwrite = struct(a = 3)
merged = structs.merge(one, two , overwrite)
# struct(a = 3, b = 2)

@mattyclarkson mattyclarkson force-pushed the structs.merge branch 4 times, most recently from 2ab03ac to 5b52c11 Compare June 19, 2025 10:47
@mattyclarkson
Copy link
Author

I am unclear why this is failing the buildifier job in the CI.

buildifier (same version as CI) is clean for me locally on lib/structs.bzl, tests/structs_test.bzl, MODULE.bazel and WORKSPACE which have been modified.

Maybe an infra-failure?

@mattyclarkson mattyclarkson force-pushed the structs.merge branch 2 times, most recently from 0f512a9 to 7e4dd74 Compare June 26, 2025 08:35
`to_json`/`to_proto` function have been removed from `structs`.

Check that they are built-in functions before eliminating the keys.

Tests are gated behind `bazel_features.rules.no_struct_field_denylist` to prevent breakage on old Bazel when running the tests.
`to_json`/`to_proto` function have been removed from `structs`.

Check that they are built-in functions before eliminating the keys.

Tests are gated behind `bazel_features.rules.no_struct_field_denylist` to prevent breakage on old Bazel when running the tests.
@mattyclarkson
Copy link
Author

I learnt how to read the BuildKite annotations tab 😊 buildifier should be fixed.

@mattyclarkson
Copy link
Author

@fmeum this is good to go.

@fmeum
Copy link
Contributor

fmeum commented Aug 20, 2025

@mattyclarkson I don't have write access, I can just help you get this in your shape for review by Google folks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants