{"record":{"id":"7d54f00dd788d05b","repo":"jdx/mise","slug":"invalid-manifest-manifest-for-dotfile-target","errorCode":null,"errorMessage":"invalid manifest {manifest:?} for dotfile {target}","messagePattern":"invalid manifest (.+?) for dotfile (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/files.rs","lineNumber":740,"sourceCode":"                    bail!(\n                        \"tracked file {target} cannot declare source, content, manifest, or exclude\"\n                    );\n                }\n                if source.is_some() && content.is_some() {\n                    bail!(\"dotfile {target} cannot declare both source and content\");\n                }\n                if mode != FileMode::Track\n                    && source.is_none()\n                    && content.is_none()\n                    && implied_variant_source.is_none()\n                {\n                    implied_source(&resolve_target_arg(&target))?;\n                }\n                if let Some(manifest) = manifest\n                    && (FileManifest::parse(&manifest).is_none()\n                        || !matches!(mode, FileMode::Copy | FileMode::SymlinkEach))\n                {\n                    bail!(\"invalid manifest {manifest:?} for dotfile {target}\");\n                }\n                for pattern in exclude.into_iter().flatten() {\n                    glob::Pattern::new(&pattern)?;\n                }\n            }\n        }\n    }\n    Ok(())\n}\n\n/// Aggregate `[dotfiles]` across a specific set of config files. This is\n/// used by OCI builds, which intentionally scope config to project files by\n/// default instead of blindly inheriting global dotfiles.\npub(crate) fn files_from_config_files(config_files: &ConfigMap) -> Vec<FileRequest> {\n    files_from_config_files_with_tracking_roots(config_files, None)\n}\n\n/// Resolve deployment overrides while limiting history enrollment to trusted roots.","sourceCodeStart":722,"sourceCodeEnd":758,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/files.rs#L722-L758","documentation":"The `manifest` key on a dotfile is only valid when its value parses as a FileManifest and the entry's mode is `copy` or `symlink-each`. Any other combination — an unparseable manifest value or manifest on symlink/copy/track/content modes — is rejected by validate_incoming_files.","triggerScenarios":"A dotfile entry sets `manifest = \"...\"` where the string does not match a known manifest format, or sets manifest on an entry whose mode is `symlink`, `copy` with malformed value, `track`, or `content`, e.g. `\"~/.config/app\" = { source = \"app\", mode = \"symlink\", manifest = \"glob:*.conf\" }`.","commonSituations":"Typos in the manifest syntax; copying a manifest from a symlink-each example onto a symlink entry; expecting manifest filtering to work in copy mode with a mode misspelling like `symlinkeach`.","solutions":["Change the entry's mode to `copy` or `symlink-each`, which are the only modes supporting manifests.","Fix the manifest value so it matches a valid FileManifest syntax (check FileManifest::parse).","Remove the `manifest` key if per-file filtering is not needed."],"exampleFix":"// before\n\"~/.config/app\" = { source = \"app\", mode = \"symlink\", manifest = \"*.conf\" }\n// after\n\"~/.config/app\" = { source = \"app\", mode = \"symlink-each\", manifest = \"*.conf\" }","handlingStrategy":"validation","validationCode":"if let Some(m) = entry_table.get(\"manifest\").and_then(|v| v.as_str()) {\n    assert!(matches!(mode, FileMode::Copy | FileMode::SymlinkEach), \"manifest only valid for copy/symlink-each\");\n    assert!(FileManifest::parse(m).is_some(), \"malformed manifest {m}\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only attach manifest to copy or symlink-each entries.","Copy manifest values from working examples rather than inventing syntax.","Lint manifest strings against FileManifest::parse in CI."],"tags":["dotfiles","config-validation","manifest","mise"],"backgroundTag":"unsupported-config-value","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"}