compose-go/loader/include.go
Nicolas De Loof b5f8b64e36
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 14:36:28 +02:00

403 lines
12 KiB