{"id":"bce7cc19978088b2","repo":"docker/cli","slug":"version-mismatched-between-two-composefiles-v-a","errorCode":null,"errorMessage":"version mismatched between two composefiles : %v and %v","messagePattern":"version mismatched between two composefiles : (.+?) and (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/compose/loader/loader.go","lineNumber":106,"sourceCode":"\t\t\tTypeCastMapping: interpolateTypeCastMapping,\n\t\t},\n\t}\n\n\tfor _, op := range opt {\n\t\top(options)\n\t}\n\n\tconfigs := []*types.Config{}\n\tvar err error\n\n\tfor _, file := range configDetails.ConfigFiles {\n\t\tconfigDict := file.Config\n\t\tversion := schema.Version(configDict)\n\t\tif configDetails.Version == \"\" {\n\t\t\tconfigDetails.Version = version\n\t\t}\n\t\tif configDetails.Version != version {\n\t\t\treturn nil, fmt.Errorf(\"version mismatched between two composefiles : %v and %v\", configDetails.Version, version)\n\t\t}\n\n\t\tif err := validateForbidden(configDict); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tif !options.SkipInterpolation {\n\t\t\tconfigDict, err = interpolateConfig(configDict, *options.Interpolate)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\n\t\tif !options.SkipValidation {\n\t\t\tif err := schema.Validate(configDict, configDetails.Version); err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}","sourceCodeStart":88,"sourceCodeEnd":124,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/compose/loader/loader.go#L88-L124","documentation":"Error \"version mismatched between two composefiles : %v and %v\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/compose/loader/loader.go:106 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}