Repository navigation
release: v1.20.0 — plugin installs never replace project files, kernel gate checks only the floor - #189
Merged
Conversation
…l gate checks only the floor hkm plugins install/enable/update no longer overwrite a published file the project already has. When the plugin's copy differs, the project's file is kept and the plugin's version is written beside it as <file>.updated. Before, a file still exactly as last published was refreshed in place, so `install --latest` rewrote configuration, views and layouts. --overwrite still replaces them for one update run. install now lists every kept file and counts only the assets it actually wrote. The plugin kernel gate refuses a plugin only when the running kernel is older than the plugin's floor. A kernel above the plugin's range installs it with a warning instead of blocking a plugin that would have run.
hakeemRash
requested review from
Alshatri and
craftdevscommunity
as code owners
October 16, 2026 21:30
Alshatri
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hkm plugins install/enable/updatenever replace a file the project already has. When a plugin's copy of a published file (config, migration, view, layout, translation) differs, the project's file is kept and the plugin's version is written beside it as<file>.updated. Before, a file still exactly as it was last published was refreshed in place, sohkm plugins install --latestrewrote configuration, views and layouts a project had built on.--overwritestill replaces them for oneupdaterun.<file>.updated(was<file>.plugin-new); a leftover.plugin-newis removed once the file matches the plugin again.installlists every kept file with its.updatedsuggestion, and counts only the assets it actually wrote.~1.17on 1.19,^1.13on 2.0) installs it with a warning instead of blocking it.Test plan
zig build testwith the pinned toolchain (0.17.0-dev.657+2faf8debf): 8/8 steps, all tests pass, including newdecideAssetandmeetsFloorcaseszig build --release=smallfor x86_64-linux-gnu, x86_64-windows-gnu, aarch64-macos, x86_64-macoshkm plugins update --dry-runon a real project (hkmvote): its layout, translations and an applied migration are reported as kept with*.updatedsuggestions; nothing is refreshed and no file changes