From 12bda0d939e5c27049999e157fec39191ce2d727 Mon Sep 17 00:00:00 2001 From: Jack Rose Date: Tue, 16 Sep 2025 15:50:44 +1000 Subject: [PATCH] de-duplicate `-f ` flags to avoid the issue in #2700 --- internal/services/manager.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/services/manager.go b/internal/services/manager.go index 1f5b379686b..ead768a1c5e 100644 --- a/internal/services/manager.go +++ b/internal/services/manager.go @@ -150,8 +150,13 @@ func StartProcessManager( fmt.Fprintf(w, "Starting all services: %s \n", strings.Join(services, ", ")) } + seenPCFiles := make(map[string]bool) for _, s := range availableServices { - flags = append(flags, "-f", s.ProcessComposePath) + if !seenPCFiles[s.ProcessComposePath] { + // Only add -f flag if we haven't seen this file path before + flags = append(flags, "-f", s.ProcessComposePath) + seenPCFiles[s.ProcessComposePath] = true + } } flags = append(flags, processComposeConfig.ExtraFlags...)