compose-go/loader/mapstructure_test.go
Nicolas De Loof 4c6da6f670 loader: do not panic on services that are not mappings
Binding the model to the project types set the implicit name of each service
and job on an assumption they are mappings, and crashed on a list, a string
or an empty entry. Such services are now left to the decoder, which reports
the error naming them (or accepts an empty entry as an empty definition).

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-23 16:00:08 +02:00

104 lines
3.5 KiB