{"record":{"id":"73bdf50276caeebd","repo":"jdx/mise","slug":"failed-to-resolve-configured-install-dependency","errorCode":null,"errorMessage":"failed to resolve configured install dependency '{}' for '{}' while offline","messagePattern":"failed to resolve configured install dependency '(.+?)' for '(.+?)' while offline","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/install_context.rs","lineNumber":149,"sourceCode":"                        \"failed to resolve configured install dependency '{}' for '{}'\",\n                        dependency, request\n                    )\n                })?;\n        }\n        for (backend, dependency) in toolset.list_current_versions() {\n            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,","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/install_context.rs#L131-L167","documentation":"Raised in install-context dependency resolution when mise is running offline (`mise install --offline` or offline mode) and a tool's configured install dependency cannot be resolved from already-installed versions. Mise refuses to guess rather than silently installing a wrong/missing dependency version.","triggerScenarios":"Running `mise install --offline` (or with offline enabled) where a tool in mise.toml declares a dependency (`depends`/configured install dependency) whose requested version is not resolved in the local toolset/installed versions.","commonSituations":"Fresh machine or CI cache where the dependency tool version was never installed; `.tool-versions`/mise.toml updated to a new dependency version while offline; airplane/no-network CI runners.","solutions":["Go online and run `mise install` once so the dependency version is resolved and installed","Install the dependency version explicitly first: `mise install <dep>@<version>`","Remove the dependency from tool config if it is genuinely not needed","Pin the dependency's exact version in config so offline resolution can match an installed version"],"exampleFix":"// before (offline, unpinned dependency)\n[tools]\nnode = \"22\"\npython = \"latest\"  # unresolved offline\n// after\n[tools]\nnode = \"22\"\npython = \"3.12\"  # matches an installed version, resolvable offline","handlingStrategy":"validation","validationCode":"# ensure dependency versions are installed before going offline\nmise install\nmise ls <dep>  # confirm the configured version is present","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run `mise install` once online after any config change","Pin dependency versions explicitly in mise.toml","Pre-warm CI caches with all dependency tools before offline stages"],"tags":["offline","dependencies","install","resolution"],"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"}