{"record":{"id":"8a629ace78a00df9","repo":"Jguer/yay","slug":"self-referential-dependencies-not-allowed","errorCode":null,"errorMessage":" self-referential dependencies not allowed","messagePattern":" self-referential dependencies not allowed","errorType":"exception","errorClass":"ErrSelfReferential","httpStatus":null,"severity":"error","filePath":"pkg/dep/topo/errors.go","lineNumber":7,"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 the child and parent arguments are the same node, i.e. an attempt to record that a package depends on itself. It is a structural integrity check that fires before any edge is added and prevents corrupting the topological sort.","triggerScenarios":"Thrown at pkg/dep/topo/errors.go:7 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the self-referencing entry from the dependency list of the package","Fix the data source (PKGBUILD depends array or repo metadata) that produced the self-dependency"],"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"}