{"record":{"id":"da6f8fbb4ac167ec","repo":"jdx/mise","slug":"mise-oci-no-project-mise-config-found-in-the-curr","errorCode":null,"errorMessage":"mise oci: no project mise config found in the current directory or any parent. Add a `mise.toml` to the project, or pass `--include-global` to use tools and [oci] settings from your global config (note: asdf/vfox plugins remain unsupported).","messagePattern":"mise oci: no project mise config found in the current directory or any parent\\. Add a `mise\\.toml` to the project, or pass `--include-global` to use tools and \\[oci\\] settings from your global config \\(note: asdf/vfox plugins remain unsupported\\)\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/oci/common.rs","lineNumber":108,"sourceCode":"}\n\n/// Configs at-or-below the project root.\n///\n/// `cf.project_root().is_some()` is the right scope: it's None for the global\n/// config, the system config, and parent-dir configs that live directly under\n/// $HOME (e.g. `~/mise.toml` someone uses to set their default Node). It's\n/// Some for any project config, including those walked up from CWD into a\n/// monorepo root — which we *do* want included (sub-project + monorepo root\n/// share the toolset of the deployable).\nfn project_config_files(config: &Config) -> Result<ConfigMap> {\n    let project_files: ConfigMap = config\n        .config_files\n        .iter()\n        .filter(|(_, cf)| cf.project_root().is_some())\n        .map(|(p, cf)| (p.clone(), cf.clone()))\n        .collect();\n    if project_files.is_empty() {\n        bail!(\n            \"mise oci: no project mise config found in the current directory or any parent. \\\n             Add a `mise.toml` to the project, or pass `--include-global` to use tools and \\\n             [oci] settings from your global config (note: asdf/vfox plugins remain \\\n             unsupported).\"\n        );\n    }\n    Ok(project_files)\n}\n\nasync fn build_project_toolset(\n    config: &std::sync::Arc<Config>,\n    project_files: ConfigMap,\n) -> Result<crate::toolset::Toolset> {\n    // ConfigScope::LocalOnly belt-and-suspenders: the project-files filter\n    // already drops global/system, but LocalOnly *also* drops MISE_*_VERSION\n    // ad-hoc overrides from the environment, which shouldn't bake into an\n    // image either.\n    ToolsetBuilder::new()","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/oci/common.rs#L90-L126","documentation":"`mise oci build` requires a project-scoped mise config so it can discover tools and [oci] settings. mise walks up from the current directory looking for config files with a project root; if none exist, the build cannot proceed. The message points to --include-global as the escape hatch for global-config-only setups (asdf/vfox plugins are not supported in OCI builds).","triggerScenarios":"Running `mise oci build` (via perform_build -> project_config_files) in a directory tree containing no mise.toml/mise.local.toml/etc. with a project root, without --include-global.","commonSituations":"Running oci build from a fresh/temp directory, inside a container, or from a repo that only defines tools in the global ~/.config/mise/config.toml.","solutions":["Add a mise.toml with [tools] and [oci] settings at your project root","Rerun with `mise oci build --include-global` to use the global config's tools and [oci] settings","cd into your project directory before running mise oci build"],"exampleFix":"// before\n$ cd /tmp && mise oci build\n// after\ncat > mise.toml <<'EOF'\n[tools]\nnode = \"22\"\nEOF\nmise oci build","handlingStrategy":"validation","validationCode":"[ -f mise.toml ] || [ -f .mise.toml ] || mise oci build --include-global","typeGuard":null,"tryCatchPattern":"if ! mise oci build; then echo 'no project mise.toml — add one or use --include-global' >&2; fi","preventionTips":["Keep a mise.toml at the repository root of every OCI project","Run oci build from the project root, not subdirectories or /tmp","Use --include-global when tools live only in the global config"],"tags":["oci","config","docker"],"backgroundTag":"missing-config-file","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"}