Repository navigation
chore(image): remove the pre-commit compat shim (one-cycle deprecation ends) - #899
Merged
Merged
Conversation
The one-release-cycle pre-commit -> prek shim (#881) was scheduled for removal in 0.5; 0.4.1 is frozen, so drop the writeShellScriptBin block from imageTools. Consumers still invoking pre-commit now get exit 127; the upgrade-time scan (#881) keeps warning with file:line and docs/MIGRATION.md carries the rename checklist. Refs: #897
This was referenced Jul 7, 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.
Description
Removes the one-release-cycle
pre-commit -> prekcompat shim from the image, ending the deprecation window opened by #881. The 0.4.1 release (with the shim) is frozen onrelease/0.4.1;devis the 0.5 line, so the scheduled removal lands here.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
writeShellScriptBin "pre-commit"block (markedDEPRECATED — remove in 0.5 (#881)) fromimageTools— the exact inverse of the fix(image): pre-commit binary dropped without a compat path — preserved consumer recipes and .githooks calling it break #881 diff; nothing else in the flake touched.test_pre_commit_compat_shim; restored the [CHORE] Adopt git-hooks.nix with package = pkgs.prek (supersedes #40) #778 absence assertion that fix(image): pre-commit binary dropped without a compat path — preserved consumer recipes and .githooks calling it break #881 displaced intest_pre_commit_installed(command -v pre-commitmust fail in the image).pre-commitbinary (exit 127); the rename checklist and the fix(image): pre-commit binary dropped without a compat path — preserved consumer recipes and .githooks calling it break #881 upgrade-time scan guidance stay.assets/init-workspace.shuntouched — its scan and "through 0.4.x only" wording remain accurate.assets/workspace/.devcontainer/CHANGELOG.md(sync-manifest mirror):Removedentry under## Unreleased.Changelog Entry
Removed
pre-commitcompat shim removed from the image (#897)pre-commit → prekshim shipped in 0.4.x (#881) is gone;pre-commitinvocations now fail with exit 127.file:lineon preserved surfaces — seedocs/MIGRATION.mdfor the rename checklist (justfile recipes, repo-owned.githooks/, CI configs →prek).Testing
just test-imagescope relevant to the change)Manual Testing Details
TDD RED/GREEN against locally built images (
just build, ~46 s warm store each):origin/dev): flippedtest_pre_commit_installedfails —command -v pre-commitresolves to/bin/pre-commit(the shim).tests/test_image.py::TestDevelopmentTools+::TestPythonEnvironment— 27 passed in 16.82 s.just precommit(prek run --all-files) — all hooks Passed, 0 Failed.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Closes #897