compose-go/loader/include_test.go
Nicolas De Loof a007f7ab63 loader: allow include into a section left empty
A compose file declaring `include` and an empty `services:`, `volumes:`
(or networks, secrets, configs, models) section crashed the loader when the
included file declared resources of that kind. An empty section declares
nothing: the included resources are now added to it. A section holding
something else than a mapping is reported as an error.

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

485 lines
16 KiB