Skip to content

Commit dcd1133

Browse files
authored
Merge pull request #3322 from ndeloof/validateComposeFile
do not assume input is a compose file on .env parsing error
2 parents a894a67 + 08e74f8 commit dcd1133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bake/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func loadComposeFiles(cfgs []composetypes.ConfigFile, envs map[string]string, op
259259
func validateComposeFile(dt []byte, fn string) (bool, error) {
260260
envs, err := composeEnv()
261261
if err != nil {
262-
return true, err
262+
return false, err
263263
}
264264
fnl := strings.ToLower(fn)
265265
if strings.HasSuffix(fnl, ".yml") || strings.HasSuffix(fnl, ".yaml") {

0 commit comments

Comments
 (0)