Skip to content

Commit 12bda0d

Browse files
de-duplicate -f <pc.yaml> flags to avoid the issue in #2700
1 parent 5ad68fa commit 12bda0d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/services/manager.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,13 @@ func StartProcessManager(
150150
fmt.Fprintf(w, "Starting all services: %s \n", strings.Join(services, ", "))
151151
}
152152

153+
seenPCFiles := make(map[string]bool)
153154
for _, s := range availableServices {
154-
flags = append(flags, "-f", s.ProcessComposePath)
155+
if !seenPCFiles[s.ProcessComposePath] {
156+
// Only add -f flag if we haven't seen this file path before
157+
flags = append(flags, "-f", s.ProcessComposePath)
158+
seenPCFiles[s.ProcessComposePath] = true
159+
}
155160
}
156161

157162
flags = append(flags, processComposeConfig.ExtraFlags...)

0 commit comments

Comments
 (0)