Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 5360e35

Browse files
author
Matthieu Nottale
committed
init: If a compose file is found in cwd, use it.
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent 2aeb293 commit 5360e35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packager/init.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ func Init(name string, composeFile string) error {
2929
return err
3030
}
3131

32+
if composeFile == "" {
33+
if _, err := os.Stat("docker-compose.yml"); err == nil {
34+
composeFile = "docker-compose.yml"
35+
}
36+
}
3237
if composeFile == "" {
3338
return initFromScratch(name)
3439
}

0 commit comments

Comments
 (0)