Merge pull request #3322 from ndeloof/validateComposeFile

do not assume input is a compose file on .env parsing error
This commit is contained in:
CrazyMax
2025-07-21 09:33:12 +02:00
committed by GitHub
+1 -1
View File
@@ -259,7 +259,7 @@ func loadComposeFiles(cfgs []composetypes.ConfigFile, envs map[string]string, op
func validateComposeFile(dt []byte, fn string) (bool, error) {
envs, err := composeEnv()
if err != nil {
return true, err
return false, err
}
fnl := strings.ToLower(fn)
if strings.HasSuffix(fnl, ".yml") || strings.HasSuffix(fnl, ".yaml") {