jdx/mise · error
unknown dotfile key for in
Error message
unknown dotfile key {key:?} for {target} in {} What it means
After a valid whole-file entry is parsed, remaining keys in the entry table are checked against the allowlist (`source`, `content`, `mode`, `manifest`, `autosave`, `encrypt`, `variants`, `enabled`, plus edit keys). Any unrecognized key triggers this error, which identifies the key, target, and config file — a typo guard for the strict dotfile schema.
Solutions
- Remove the unknown key or correct its spelling against the allowed keys: source, content, mode, manifest, autosave, encrypt, variants, enabled
- Check the tool version's docs for the correct key name if migrating between versions
- Move genuinely unsupported options to a supported mechanism (e.g. use `variants` for per-destination settings)
Example fix
// before
"~/.gitconfig" = { source = "dotfiles/gitconfig", symlink = true }
// after
"~/.gitconfig" = { source = "dotfiles/gitconfig", mode = "symlink" } Defensive patterns
Strategy: validation
Validate before calling
const ALLOWED = ['source','content','mode','manifest','autosave','encrypt','variants','enabled','block','line','template','comment','position'];
function unknownKeys(entry) {
return Object.keys(entry || {}).filter(k => !ALLOWED.includes(k));
} Type guard
const onlyAllowedKeys = (e: Record<string, unknown>): boolean => Object.keys(e).every(k => ALLOWED_KEYS.includes(k));
Prevention
- Check the version's dotfile docs before using an option key
- Lint configs against the allowlist (source, content, mode, manifest, autosave, encrypt, variants, enabled)
- Watch deprecation notes when upgrading — renamed keys will surface here
When it happens
Trigger: A dotfile entry table containing an unknown key such as `soure`, `symlink = true`, or an old/renamed option no longer accepted.
Common situations: Using an option from an older or newer version whose key name changed; typos; copying options from other tools' dotfile configs (e.g. GNU Stow or Chezmoi flags).
Understand the failure class
Background: Schema validation failed / invalid input schema: payload rejected because its shape doesn't match the expected schema — this error's family across 28 libraries.
Related errors
- an implied source entry key must be relative
- an implied source entry key must not be empty
- an implied source entry key must not contain '..'
- conflicting dotfile declarations for
- destination variants require an explicit source unless the…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/3997ba6af8f3d25f.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/files.rs:677
continue;
}
bail!("invalid dotfile declaration {target} in {}", path.display());
};
if let Some(table) = value.as_table() {
for key in table.keys() {
if !matches!(
key.as_str(),
"source"
| "content"
| "mode"
| "exclude"
| "manifest"
| "autosave"
| "encrypt"
| "variants"
| "enabled"
) {
bail!(
"unknown dotfile key {key:?} for {target} in {}",
path.display()
);
}
}
}
if let FileTomlEntry::Source(_) = &entry {
validate_file_variants(&target, None, None, None, &[])?;
}
if let FileTomlEntry::Table {
source,
content,
mode,
manifest,
exclude,
variants,
..
} = entryView on GitHub (pinned to 533346cc37)