{"record":{"id":"4d8f41c26abfd379","repo":"Jguer/yay","slug":"circular-dependencies-not-allowed","errorCode":null,"errorMessage":" circular dependencies not allowed","messagePattern":" circular dependencies not allowed","errorType":"exception","errorClass":"ErrCircular","httpStatus":null,"severity":"error","filePath":"pkg/dep/topo/errors.go","lineNumber":14,"sourceCode":"package topo\n\nimport \"errors\"\n\nvar (\n\t// ErrSelfReferential is returned when attempting to create an edge where a node depends on itself.\n\tErrSelfReferential = errors.New(\" self-referential dependencies not allowed\")\n\n\t// ErrConflictingAlias is reserved for when a \"provides\" alias is defined more than once.\n\t// Note: current Graph APIs overwrite provides entries; this error is not currently returned.\n\tErrConflictingAlias = errors.New(\" alias already defined\")\n\n\t// ErrCircular is returned when attempting to create an edge that would introduce a cycle.\n\tErrCircular = errors.New(\" circular dependencies not allowed\")\n)\n","sourceCodeStart":1,"sourceCodeEnd":16,"githubUrl":"https://github.com/Jguer/yay/blob/328f4b4939fb35f38c2f7c7ce3b8638a839bafa5/pkg/dep/topo/errors.go#L1-L16","documentation":"Graph API sentinel error returned by Graph.DependOn when adding the edge child->parent would create a cycle, detected by checking whether parent already (transitively) depends on child. Dependency graphs must be a DAG for topological sorting to work, so cyclic edges are rejected at insertion time.","triggerScenarios":"Thrown at pkg/dep/topo/errors.go:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Break the cycle by removing or relaxing one dependency in the chain","Check for version-pinned or split-package depends that erroneously reference each other"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"328f4b4939fb35f38c2f7c7ce3b8638a839bafa5","analyzedAt":"2026-09-07T16:45:12.608Z","contentChangedAt":"2026-09-07T16:45:12.608Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}