Repository navigation
fix(dotfiles): refuse whole-file keys on block and line edits - #15733
Conversation
A block or line edit that carried variants was read as a whole-file entry keyed by the edit path, and the edit side ignored variants silently. Edit keys now win, and whole-file keys on an edit warn and ignore the entry. Fixes #15726 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> AI-Assisted: Tool: Claude Code; model: unavailable; version: 2.1.325 Entire-Checkpoint: 01M7D3YMBARVD426QYYVSDB3VR
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The PR appears safe to merge. SummaryThe PR stops block and line edits with whole-file-only keys from being read as whole-file entries.
Reviews (2) · Last reviewed commit: "fix(dotfiles): keep unrecognized edit ta..." · Reviewed by Greptile |
A table with no edit key and no whole-file key (for example
{ something_else = true }) is an edit mise cannot read and must warn
'no recognized operation' again. Also say in the docs that enabled is a
whole-file key, not accepted on edits.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Assisted: Tool: Claude Code; model: unavailable; version: 2.1.325
Entire-Checkpoint: 01M7D7GAXTBF3FVZF8XNY9TEB2
Instruction counts
No instruction-count regression above 1%. Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run. Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.
|
### 🚀 Features - **(aqua)** run .jar packages through java -jar by @jdx in [#15688](#15688) - **(task)** include cache, lock and skip_if in tasks ls --json by @jdx in [#15675](#15675) - **(task)** add deny_unix and allow_unix sandbox restrictions by @jdx in [#15672](#15672) - **(task)** render templates in lock names by @jdx in [#15710](#15710) - **(task)** let a lock hold several slots with `task.lock_pools` and `count` by @jdx in [#15720](#15720) ### 🐛 Bug Fixes - **(bootstrap)** pull the global config before loading it on --update by @jdx in [#15731](#15731) - **(bootstrap)** skip brew-cask entries with unsupported artifacts on linux by @jdx in [#15732](#15732) - **(brew)** support Array#second in tap metadata shims by @jdx in [#15708](#15708) - **(brew)** build source formulas that use with_env by @jdx in [#15737](#15737) - **(brew)** install cask binaries from URLs without a filename by @jdx in [#15738](#15738) - **(brew)** link cask binaries that name nested app bundles by @jdx in [#15739](#15739) - **(brew)** accept installer script casks from taps by @jdx in [#15743](#15743) - **(dotfiles)** warn about keys no dotfile entry or bootstrap hook reads by @jdx in [#15735](#15735) - **(dotfiles)** refuse whole-file keys on block and line edits by @jdx in [#15733](#15733) - **(env)** run compinit when zsh _comps is not an associative array by @jdx in [#15692](#15692) - **(erlang)** use /etc/os-release when ImageOS is the generic Linux by @jdx in [#15691](#15691) - **(install)** keep an installed version newer than the minimum_release_age cutoff by @jdx in [#15673](#15673) - **(install)** summarize tracked-config load failures during deferred prune by @jdx in [#15698](#15698) - **(lock)** keep the locked version when --bump resolves an older one by @jdx in [#15687](#15687) - **(lock)** keep the locked version when minimum_release_age hides every match under --bump by @jdx in [#15689](#15689) - **(lock)** name the tool and provenance in the downgrade error by @jdx in [#15755](#15755) - **(npm)** turn off aube's release age gate when mise has it off by @jdx in [#15697](#15697) - **(search)** show the registry url instead of a guessed github link by @jdx in [#15709](#15709) - **(self-update)** download the Windows release archive only once by @jdx in [#15686](#15686) - **(task)** do not cache a pass when a source changed during the run by @jdx in [#15719](#15719) - **(task)** scan the cache once when clearing several tasks by @jdx in [#15718](#15718) - **(version)** don't call the official apt package a third-party build by @jdx in [#15690](#15690) - **(vfox)** let plugins call async functions inside pcall by @jdx in [#15741](#15741) - **(zig)** record minisign provenance at lock time by @jdx in [#15730](#15730) ### 📚 Documentation - **(config)** note explicit global and system config files load no env variants by @jdx in [#15716](#15716) ### ⚡ Performance - **(config)** trim eager work in hook-env by @jdx in [#15734](#15734) ### 📦 Registry - add jadx by @jdx in [#15685](#15685) - add jscpd by @jdx in [#15696](#15696) ### Chore - **(ci)** migrate lock workflows to GitHub App client IDs by @jdx in [#15714](#15714) ## 📦 Aqua Registry Updates ### New Packages (10) - [`LambdaBytes/sping`](https://github.com/LambdaBytes/sping) - [`creativeprojects/resticprofile`](https://github.com/creativeprojects/resticprofile) - [`elastic/crd-ref-docs`](https://github.com/elastic/crd-ref-docs) - [`emprcl/spor`](https://github.com/emprcl/spor) - [`github/gh-actions-lock`](https://github.com/github/gh-actions-lock) - [`google.com/cloud-sdk`](https://github.com/google-cloud-sdk-unofficial/google-cloud-sdk) - [`iBotPeaches/Apktool`](https://github.com/iBotPeaches/Apktool) - [`mongodb/kingfisher`](https://github.com/mongodb/kingfisher) - [`timmo001/kestrel`](https://github.com/timmo001/kestrel) - [`yhay81/sqrail`](https://github.com/yhay81/sqrail) ### Updated Packages (3) - [`herdrdev/herdr-core`](https://github.com/herdrdev/herdr-core) - [`kyverno/kyverno`](https://github.com/kyverno/kyverno) - [`walles/moor`](https://github.com/walles/moor)
… (#1782) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/jdx/mise](https://github.com/jdx/mise) | patch | `2026.11.8` → `2026.11.9` | --- ### Release Notes <details> <summary>jdx/mise (ghcr.io/jdx/mise)</summary> ### [`v2026.11.9`](https://github.com/jdx/mise/blob/HEAD/CHANGELOG.md#2026119---2026-11-16) [Compare Source](jdx/mise@v2026.11.8...v2026.11.9) ##### 🚀 Features - **(aqua)** run .jar packages through java -jar by [@​jdx](https://github.com/jdx) in [#​15688](jdx/mise#15688) - **(task)** include cache, lock and skip_if in tasks ls --json by [@​jdx](https://github.com/jdx) in [#​15675](jdx/mise#15675) - **(task)** add deny_unix and allow_unix sandbox restrictions by [@​jdx](https://github.com/jdx) in [#​15672](jdx/mise#15672) - **(task)** render templates in lock names by [@​jdx](https://github.com/jdx) in [#​15710](jdx/mise#15710) - **(task)** let a lock hold several slots with `task.lock_pools` and `count` by [@​jdx](https://github.com/jdx) in [#​15720](jdx/mise#15720) - **(task)** select dependencies by tag with { tag = ... } by [@​jdx](https://github.com/jdx) in [#​15753](jdx/mise#15753) ##### 🐛 Bug Fixes - **(bootstrap)** pull the global config before loading it on --update by [@​jdx](https://github.com/jdx) in [#​15731](jdx/mise#15731) - **(bootstrap)** skip brew-cask entries with unsupported artifacts on linux by [@​jdx](https://github.com/jdx) in [#​15732](jdx/mise#15732) - **(brew)** support Array#second in tap metadata shims by [@​jdx](https://github.com/jdx) in [#​15708](jdx/mise#15708) - **(brew)** build source formulas that use with_env by [@​jdx](https://github.com/jdx) in [#​15737](jdx/mise#15737) - **(brew)** install cask binaries from URLs without a filename by [@​jdx](https://github.com/jdx) in [#​15738](jdx/mise#15738) - **(brew)** link cask binaries that name nested app bundles by [@​jdx](https://github.com/jdx) in [#​15739](jdx/mise#15739) - **(brew)** accept installer script casks from taps by [@​jdx](https://github.com/jdx) in [#​15743](jdx/mise#15743) - **(dotfiles)** warn about keys no dotfile entry or bootstrap hook reads by [@​jdx](https://github.com/jdx) in [#​15735](jdx/mise#15735) - **(dotfiles)** refuse whole-file keys on block and line edits by [@​jdx](https://github.com/jdx) in [#​15733](jdx/mise#15733) - **(env)** run compinit when zsh \_comps is not an associative array by [@​jdx](https://github.com/jdx) in [#​15692](jdx/mise#15692) - **(erlang)** use /etc/os-release when ImageOS is the generic Linux by [@​jdx](https://github.com/jdx) in [#​15691](jdx/mise#15691) - **(install)** keep an installed version newer than the minimum_release_age cutoff by [@​jdx](https://github.com/jdx) in [#​15673](jdx/mise#15673) - **(install)** summarize tracked-config load failures during deferred prune by [@​jdx](https://github.com/jdx) in [#​15698](jdx/mise#15698) - **(lock)** keep the locked version when --bump resolves an older one by [@​jdx](https://github.com/jdx) in [#​15687](jdx/mise#15687) - **(lock)** keep the locked version when minimum_release_age hides every match under --bump by [@​jdx](https://github.com/jdx) in [#​15689](jdx/mise#15689) - **(lock)** name the tool and provenance in the downgrade error by [@​jdx](https://github.com/jdx) in [#​15755](jdx/mise#15755) - **(npm)** turn off aube's release age gate when mise has it off by [@​jdx](https://github.com/jdx) in [#​15697](jdx/mise#15697) - **(search)** show the registry url instead of a guessed github link by [@​jdx](https://github.com/jdx) in [#​15709](jdx/mise#15709) - **(self-update)** download the Windows release archive only once by [@​jdx](https://github.com/jdx) in [#​15686](jdx/mise#15686) - **(shim)** keep shims pointing at mise after a shim-triggered install by [@​jdx](https://github.com/jdx) in [#​15758](jdx/mise#15758) - **(task)** do not cache a pass when a source changed during the run by [@​jdx](https://github.com/jdx) in [#​15719](jdx/mise#15719) - **(task)** scan the cache once when clearing several tasks by [@​jdx](https://github.com/jdx) in [#​15718](jdx/mise#15718) - **(version)** don't call the official apt package a third-party build by [@​jdx](https://github.com/jdx) in [#​15690](jdx/mise#15690) - **(vfox)** let plugins call async functions inside pcall by [@​jdx](https://github.com/jdx) in [#​15741](jdx/mise#15741) - **(zig)** record minisign provenance at lock time by [@​jdx](https://github.com/jdx) in [#​15730](jdx/mise#15730) ##### 📚 Documentation - **(config)** note explicit global and system config files load no env variants by [@​jdx](https://github.com/jdx) in [#​15716](jdx/mise#15716) ##### ⚡ Performance - **(config)** trim eager work in hook-env by [@​jdx](https://github.com/jdx) in [#​15734](jdx/mise#15734) ##### 📦 Registry - add jadx by [@​jdx](https://github.com/jdx) in [#​15685](jdx/mise#15685) - add jscpd by [@​jdx](https://github.com/jdx) in [#​15696](jdx/mise#15696) ##### Chore - **(ci)** migrate lock workflows to GitHub App client IDs by [@​jdx](https://github.com/jdx) in [#​15714](jdx/mise#15714) ##### 📦 Aqua Registry Updates ##### New Packages (20) - [`LambdaBytes/sping`](https://github.com/LambdaBytes/sping) - [`Mattbusel/Every-Other-Token`](https://github.com/Mattbusel/Every-Other-Token) - [`Mattbusel/corescout`](https://github.com/Mattbusel/corescout) - [`Mattbusel/llm-bench`](https://github.com/Mattbusel/llm-bench) - [`Mattbusel/llm-cost-dashboard`](https://github.com/Mattbusel/llm-cost-dashboard) - [`Mattbusel/polymarket-agent`](https://github.com/Mattbusel/polymarket-agent) - [`Mattbusel/prompt-observatory`](https://github.com/Mattbusel/prompt-observatory) - [`Mattbusel/reckoner`](https://github.com/Mattbusel/reckoner) - [`Mattbusel/tft-synapse`](https://github.com/Mattbusel/tft-synapse) - [`Mattbusel/tokenviz`](https://github.com/Mattbusel/tokenviz) - [`Mattbusel/tokio-prompt-orchestrator`](https://github.com/Mattbusel/tokio-prompt-orchestrator) - [`creativeprojects/resticprofile`](https://github.com/creativeprojects/resticprofile) - [`elastic/crd-ref-docs`](https://github.com/elastic/crd-ref-docs) - [`emprcl/spor`](https://github.com/emprcl/spor) - [`github/gh-actions-lock`](https://github.com/github/gh-actions-lock) - [`google.com/cloud-sdk`](https://github.com/google-cloud-sdk-unofficial/google-cloud-sdk) - [`iBotPeaches/Apktool`](https://github.com/iBotPeaches/Apktool) - [`mongodb/kingfisher`](https://github.com/mongodb/kingfisher) - [`timmo001/kestrel`](https://github.com/timmo001/kestrel) - [`yhay81/sqrail`](https://github.com/yhay81/sqrail) ##### Updated Packages (3) - [`herdrdev/herdr-core`](https://github.com/herdrdev/herdr-core) - [`kyverno/kyverno`](https://github.com/kyverno/kyverno) - [`walles/moor`](https://github.com/walles/moor) </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzkuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjIzOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.xcd.dev/gabrielcosi/home-ops/pulls/1782
A
[dotfiles]block or line edit withvariantswas silently misread. Without a matching selector the edit applied anyway; with one, the entry was also parsed as a whole-file entry keyed by the edit path, somise dot applyandmise bootstrapfailed with "sources do not exist".Now
variants(and every other whole-file-only key) on a block or line edit warns like a merge edit already does and the entry is ignored:Honoring the selector on edits would be a feature of its own; this only fixes the misparse and the silence.
block,line,template,commentorpositionis never a whole-file entry.permissionsanddot_prefix.mise dot pullvalidation refuses the same keys.Fixes #15726
Testing
Unit tests for both classifiers and an e2e test,
test_dotfiles_edit_variants.cargo test -p mise -p mise-oci -p mise-systempasses. Clippy could not run here (missinglua51).🤖 Generated with Claude Code
AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable.
Note
Medium Risk
Changes dotfile config classification and validation paths used by status, apply, and pull; behavior is stricter (invalid combos are rejected) but fixes incorrect apply failures.
Overview
Fixes a misparse where
[dotfiles]block or line edits carrying whole-file-only keys (e.g.variants,enabled,mode) could be treated as whole-file entries—silently ignoring selectors or failing apply when a variant matched.Parsing and validation now share
EDIT_KEYSandWHOLE_FILE_KEYS: tables with edit keys are never classified as whole-file entries, and any whole-file key on block/line edits produces a warning and the entry is ignored (aligned with merge-edit behavior).mise dot pulluses the same key list when validating edits.Docs clarify that
enabledand related keys apply only to whole-file entries, not block/line/merge edits. Tests add unit coverage for both classifiers and an e2e case forvariantson a block edit.Reviewed by Cursor Bugbot for commit c24f948. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
enabledoption.