Example:
print(struct(foo = "bar") + struct(foo = "bar"))
Result in Bazel:
Error: cannot add struct instances with common field 'foo'
Result in starlark-go:
Let me know if it is expected for this struct type from starlarkstruct to roughly match Bazel at all, or if this report is invalid.
As far as I'm aware, there's no reasonable workaround for this: to change this behavior, one would need to entirely replace the struct type with their own copy.
Example:
Result in Bazel:
Result in starlark-go:
Let me know if it is expected for this
structtype fromstarlarkstructto roughly match Bazel at all, or if this report is invalid.As far as I'm aware, there's no reasonable workaround for this: to change this behavior, one would need to entirely replace the
structtype with their own copy.