bazel-skylib
bazel-skylib copied to clipboard
Add `structs.merge`
one = struct(a = 1)
two = struct(b = 2)
overwrite = struct(a = 3)
merged = structs.merge(one, two , overwrite)
# struct(a = 3, b = 2)
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?
I learnt how to read the BuildKite annotations tab 😊 buildifier should be fixed.
@fmeum this is good to go.
@mattyclarkson I don't have write access, I can just help you get this in your shape for review by Google folks