debian-forge-composer/internal/blueprint
Ondřej Budai fa514c5326 blueprint: remove omitempty from Customizations
See https://github.com/BurntSushi/toml/issues/360

A recent change in BurntSushi/toml made encoding fail (later changed to
error) if a struct is marked as omitempty and is comparable. Go docs about
equality: https://go.dev/doc/go1#equality. Basically: A struct is comparable
if all of its fields are comparable. Slices are not comparable.

Customizations are marked as omitempty but they contain a lot of slices,
thus they are not comparable. The new version of BurntSushi/toml therefore
panics when we encode them.

The solution is to remove the omitempty tag from Customizations.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-08-29 10:25:38 +02:00
..
blueprint.go blueprint: remove omitempty from Customizations 2022-08-29 10:25:38 +02:00
blueprint_test.go blueprint: Don't allow empty password 2022-07-16 22:54:26 +01:00
customizations.go blueprint/customizations: oscap config 2022-08-04 18:19:06 +02:00
customizations_test.go blueprint/customizations: oscap config 2022-08-04 18:19:06 +02:00