{"record":{"id":"7690951c19f9e054","repo":"jdx/mise","slug":"lazy-tool-has-no-registry-bin-metadata-set-laz","errorCode":null,"errorMessage":"lazy tool {} has no registry bin metadata; set lazy_bins explicitly","messagePattern":"lazy tool (.+?) has no registry bin metadata; set lazy_bins explicitly","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/toolset/tool_request.rs","lineNumber":384,"sourceCode":"\n    /// Command names that should receive bootstrap shims before a lazy tool is installed.\n    /// Registry metadata is authoritative when the config does not provide an explicit list.\n    pub(crate) fn lazy_bins(&self) -> Result<Option<Vec<String>>> {\n        let options = self.resolved_options().effective();\n        if options.lazy != Some(true) {\n            return Ok(None);\n        }\n        if !options.lazy_bins.is_empty() {\n            return Ok(Some(options.lazy_bins.clone()));\n        }\n        if let Some(tool) = self.ba().registry_tool()\n            && !tool.bins.is_empty()\n        {\n            return Ok(Some(\n                tool.bins.iter().map(|bin| (*bin).to_string()).collect(),\n            ));\n        }\n        bail!(\n            \"lazy tool {} has no registry bin metadata; set lazy_bins explicitly\",\n            self.ba().short\n        )\n    }\n\n    pub(crate) fn explicit_options(&self) -> ToolVersionOptions {\n        self.resolved_options().options_from_sources(&[\n            ToolOptionSource::Request,\n            ToolOptionSource::InlineBackendArg,\n        ])\n    }\n\n    fn resolved_options(&self) -> &ResolvedToolOptions {\n        match self {\n            Self::Version { options: o, .. }\n            | Self::Prefix { options: o, .. }\n            | Self::Ref { options: o, .. }\n            | Self::Sub { options: o, .. }","sourceCodeStart":366,"sourceCodeEnd":402,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/toolset/tool_request.rs#L366-L402","documentation":"mise supports \"lazy\" backends whose executable names are only resolved when needed. For a lazy tool, mise tries to derive the bin list from registry metadata (tool.bins); when the tool has no bins configured or the registry metadata is absent, it refuses to guess and throws, telling you to set the bin names explicitly via the lazy_bins setting. This prevents mise from generating shims for wrong or missing binaries.","triggerScenarios":"Calling the lazy_bins resolution path (ToolRequest bin lookup) for a lazy backend tool where tool.bins is empty or the registry entry carries no bin metadata, and no explicit lazy_bins override was configured.","commonSituations":"Adding a new or custom tool to registry/ without a bins field; a registry entry edited so bins was removed; using a third-party/lazy backend plugin whose metadata lacks bin names; typos in the registry key so the wrong (metadata-less) entry is matched.","solutions":["Set the bins explicitly, e.g. mise settings lazy_bins.<tool>='[\"binname\"]' or add bins to the tool's registry entry.","Add/repair the bins field in the registry/ entry for the tool so tool.bins is non-empty.","Verify the tool key spelling matches an existing registry entry that has bin metadata."],"exampleFix":"// registry/foobar (before)\nfoobar = aqua:acme/foobar\n// after\nfoobar = ['aqua:acme/foobar', { bins = ['foobar'] }]","handlingStrategy":"validation","validationCode":"// before relying on lazy bin resolution\nconst entry = registry[toolKey];\nif (!entry || !entry.bins || entry.bins.length === 0) {\n  // configure lazy_bins or fix the registry entry first\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always include a bins field when adding lazy tools to registry/.","Prefer non-lazy backends (aqua/github) that carry bin metadata automatically.","Run `mise ls-remote <tool>` / a smoke install after registry edits."],"tags":["mise","registry","lazy-bins","configuration"],"backgroundTag":"missing-required-config-field","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}