{"record":{"id":"75a1306a62d61ea0","repo":"jdx/mise","slug":"tool-requires-configured-install-dependency","errorCode":null,"errorMessage":"tool '{}' requires configured install dependency '{}', but its selected version is not installed\nhint: Run `mise install {}` before installing '{}'. Remove the dependency from configuration to allow the install hook to rely on system PATH instead.","messagePattern":"tool '(.+?)' requires configured install dependency '(.+?)', but its selected version is not installed\nhint: Run `mise install (.+?)` before installing '(.+?)'\\. Remove the dependency from configuration to allow the install hook to rely on system PATH instead\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/install_context.rs","lineNumber":155,"sourceCode":"            if !backend.is_version_installed(config, &dependency, true) {\n                let unresolved = !dependency.resolved_from_lockfile()\n                    && match &dependency.request {\n                        ToolRequest::Prefix { .. } | ToolRequest::Sub { .. } => true,\n                        ToolRequest::Version { version, .. } => {\n                            version == \"latest\" || backend.is_rolling_channel(version)\n                        }\n                        ToolRequest::Ref { .. }\n                        | ToolRequest::Path { .. }\n                        | ToolRequest::System { .. } => false,\n                    };\n                if unresolved {\n                    bail!(\n                        \"failed to resolve configured install dependency '{}' for '{}' while offline\",\n                        dependency.request,\n                        request\n                    );\n                }\n                bail!(\n                    \"tool '{}' requires configured install dependency '{}', but its selected version is not installed\\n\\\n                     hint: Run `mise install {}` before installing '{}'. Remove the dependency from configuration to allow the install hook to rely on system PATH instead.\",\n                    request,\n                    dependency.request,\n                    dependency.request,\n                    request,\n                );\n            }\n        }\n        let paths = toolset.list_paths_strict(config, request).await?;\n        let context = Self {\n            declarations,\n            requests,\n            toolset,\n            paths,\n        };\n        debug_assert_eq!(context.requests.tools.len(), context.toolset.versions.len());\n        debug_assert!(","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/install_context.rs#L137-L173","documentation":"Raised when a tool's configured install dependency declares a specific version that is not currently installed, so the install hook for the dependent tool cannot rely on it. Mise tells you to install the dependency version first, or to remove the dependency so the hook falls back to system PATH.","triggerScenarios":"Installing tool A whose config declares dependency tool B at a selected version that has no installed copy on the machine (e.g. `mise install terraform` when its configured dependency `opentofu@1.x` is not installed).","commonSituations":"Fresh clone on a new machine where only some tools are listed for install; config was edited to add a dependency but `mise install` hasn't been run for it; CI installs one tool without its dependencies.","solutions":["Run `mise install <dependency>` first (the hint command), then install the tool again","Run plain `mise install` to install everything in config including dependencies","Remove the dependency from the tool's configuration if the hook can rely on system PATH","In CI, add a step installing dependency tools before the dependent tool"],"exampleFix":"// before\nmise install terraform\n// after\nmise install opentofu\nmise install terraform","handlingStrategy":"validation","validationCode":"# before installing the dependent tool\nmise ls <dependency> || mise install <dependency>","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run plain `mise install` (installs all configured tools incl. dependencies) instead of per-tool installs","Keep dependency tools listed in the same mise.toml","In CI, install the full toolset before per-tool steps"],"tags":["dependencies","install","versioning","config"],"backgroundTag":"missing-dependency","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"}