{"record":{"id":"ceb4c76a2b72c2c3","repo":"argoproj/argo-workflows","slug":"containers-s-ceb4c7","errorCode":null,"errorMessage":"containers %s","messagePattern":"containers (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/apis/workflow/v1alpha1/container_set_template_types.go","lineNumber":134,"sourceCode":"\t\tnameToContainer[ctr.Name] = ctr\n\t}\n\tfor _, ctr := range in.Containers {\n\t\tfor _, depName := range ctr.Dependencies {\n\t\t\t_, ok := nameToContainer[depName]\n\t\t\tif !ok {\n\t\t\t\treturn fmt.Errorf(\"containers.%s dependency '%s' not defined\", ctr.Name, depName)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Ensure there is no dependency cycle\n\tdepGraph := make(map[string][]string)\n\tfor _, ctr := range in.Containers {\n\t\tdepGraph[ctr.Name] = append(depGraph[ctr.Name], ctr.Dependencies...)\n\t}\n\terr = validateNoCycles(depGraph)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"containers %s\", err.Error())\n\t}\n\treturn nil\n}\n\ntype ContainerNode struct {\n\tcorev1.Container `json:\",inline\" protobuf:\"bytes,1,opt,name=container\"`\n\tDependencies     []string `json:\"dependencies,omitempty\" protobuf:\"bytes,2,rep,name=dependencies\"`\n}\n","sourceCodeStart":116,"sourceCodeEnd":143,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/pkg/apis/workflow/v1alpha1/container_set_template_types.go#L116-L143","documentation":"ContainerSetTemplate.Validate's dependency-cycle check (validateNoCycles) found a cycle among container dependencies; this wrapper prefixes the cycle details with 'containers'. The inner error names the cyclic dependency chain.","triggerScenarios":"Thrown at pkg/apis/workflow/v1alpha1/container_set_template_types.go:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Break the cycle: dependency graphs must be a DAG","Reorder or remove dependencies so no container transitively depends on itself"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35bff19146f5a6ada77468c431f2624bd577e373","analyzedAt":"2026-09-03T19:34:35.908Z","contentChangedAt":"2026-09-03T19:34:35.908Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}