From 4ded4d4e0949be0eb072553e06001225a0136300 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Wed, 3 Apr 2024 22:08:01 +0200 Subject: [PATCH] Set the compose file list using overrides This is a hack to force the compose package to read all files provided with the -c flag. --- parser/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parser/main.go b/parser/main.go index b8889d1..c9ffe0f 100644 --- a/parser/main.go +++ b/parser/main.go @@ -11,6 +11,10 @@ func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, erro cli.DefaultOverrideFileNames = append(cli.DefaultOverrideFileNames, "compose.katenary.yaml") + if len(dockerComposeFile) == 0 { + cli.DefaultOverrideFileNames = append(cli.DefaultOverrideFileNames, dockerComposeFile...) + } + options, err := cli.NewProjectOptions(nil, cli.WithProfiles(profiles), cli.WithDefaultConfigPath,