{"record":{"id":"b3cdb209c4d94df9","repo":"Hmbown/CodeWhale","slug":"registry-entry-for-name-must-not-point-to-anot","errorCode":null,"errorMessage":"registry entry for '{name}' must not point to another registry","messagePattern":"registry entry for '(.+?)' must not point to another registry","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/skills/install.rs","lineNumber":1073,"sourceCode":"        InstallSource::DirectUrl(url) => Ok(UrlResolution::Resolved(vec![url.clone()])),\n        InstallSource::Registry(name) => {\n            match fetch_registry(network, registry_url).await? {\n                RegistryFetchResult::Loaded(doc) => {\n                    let entry = doc\n                        .skills\n                        .get(name)\n                        .with_context(|| format!(\"skill '{name}' not found in registry\"))?\n                        .clone();\n                    let inner = InstallSource::parse(&entry.source).with_context(|| {\n                        format!(\n                            \"registry entry for '{name}' has invalid source: {}\",\n                            entry.source\n                        )\n                    })?;\n                    // Recurse only one level — registry pointing at registry is\n                    // disallowed to avoid cycles.\n                    if matches!(inner, InstallSource::Registry(_)) {\n                        bail!(\"registry entry for '{name}' must not point to another registry\");\n                    }\n                    // Reuse this function for the inner source so GitHub fallback\n                    // still applies.\n                    Box::pin(candidate_urls(&inner, network, registry_url)).await\n                }\n                RegistryFetchResult::NeedsApproval(host) => Ok(UrlResolution::NeedsApproval(host)),\n                RegistryFetchResult::Denied(host) => Ok(UrlResolution::Denied(host)),\n            }\n        }\n    }\n}\n\n/// Download the first URL whose host the policy allows and which returns 2xx.\n/// Returns `NeedsApproval` if every candidate hit `Prompt`, or `Denied` if every\n/// candidate was denied.\nasync fn download_first_success(\n    urls: &[String],\n    network: &NetworkPolicy,","sourceCodeStart":1055,"sourceCodeEnd":1091,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/skills/install.rs#L1055-L1091","documentation":"When resolving a registry entry, `candidate_urls` follows the entry's own source, but only one level. A registry entry whose `source` is itself `registry:` would create a cycle or unbounded indirection, so it is rejected with this error.","triggerScenarios":"Calling `install_with_registry`/`update_with_registry` for a skill whose registry JSON entry has `source: \"registry:<other-name>\"` — a registry entry pointing at another registry entry.","commonSituations":"Registry authors creating alias/indirection entries; a registry mirror that re-points entries at a parent registry; typos where the intended value was a GitHub repo or URL but a `registry:` prefix was left in.","solutions":["Fix the registry entry so its `source` is a GitHub repo or direct tarball URL, not `registry:`","Update the registry JSON and re-run the install/update","If an alias is genuinely needed, resolve it registry-side and publish the concrete source"],"exampleFix":"// registry entry: before\n{\"name\": \"fmt\", \"source\": \"registry:fmt-core\"}\n// after\n{\"name\": \"fmt\", \"source\": \"github:acme/fmt-core\"}","handlingStrategy":"validation","validationCode":"if entry.source.starts_with(\"registry:\") {\n    return Err(anyhow!(\"registry entry must not point to another registry\"));\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate registry JSON entries at publish time","Keep registry entries flat — one hop only","Lint registries for registry:-prefixed sources"],"tags":["registry","validation","cycle"],"backgroundTag":"invalid-config-value","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}