Hmbown/CodeWhale · error
registry entry for ' ' must not point to another registry
Error message
registry entry for '{name}' must not point to another registry What it means
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.
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
Example fix
// registry entry: before
{"name": "fmt", "source": "registry:fmt-core"}
// after
{"name": "fmt", "source": "github:acme/fmt-core"} Defensive patterns
Strategy: validation
Validate before calling
if entry.source.starts_with("registry:") {
return Err(anyhow!("registry entry must not point to another registry"));
} Prevention
- Validate registry JSON entries at publish time
- Keep registry entries flat — one hop only
- Lint registries for registry:-prefixed sources
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: "Invalid value" and "allowed values are" config errors: what your library rejected and how to fix it — this error's family across 41 libraries.
Related errors
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/b3cdb209c4d94df9.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/skills/install.rs:1073
InstallSource::DirectUrl(url) => Ok(UrlResolution::Resolved(vec![url.clone()])),
InstallSource::Registry(name) => {
match fetch_registry(network, registry_url).await? {
RegistryFetchResult::Loaded(doc) => {
let entry = doc
.skills
.get(name)
.with_context(|| format!("skill '{name}' not found in registry"))?
.clone();
let inner = InstallSource::parse(&entry.source).with_context(|| {
format!(
"registry entry for '{name}' has invalid source: {}",
entry.source
)
})?;
// Recurse only one level — registry pointing at registry is
// disallowed to avoid cycles.
if matches!(inner, InstallSource::Registry(_)) {
bail!("registry entry for '{name}' must not point to another registry");
}
// Reuse this function for the inner source so GitHub fallback
// still applies.
Box::pin(candidate_urls(&inner, network, registry_url)).await
}
RegistryFetchResult::NeedsApproval(host) => Ok(UrlResolution::NeedsApproval(host)),
RegistryFetchResult::Denied(host) => Ok(UrlResolution::Denied(host)),
}
}
}
}
/// Download the first URL whose host the policy allows and which returns 2xx.
/// Returns `NeedsApproval` if every candidate hit `Prompt`, or `Denied` if every
/// candidate was denied.
async fn download_first_success(
urls: &[String],
network: &NetworkPolicy,View on GitHub (pinned to 73e0f67d83)