Release Notes
Released on 2025-12-08.
Highlights
In this release:
- Rust hooks are now fully supported with automatic toolchain management, including package discovery in virtual workspaces. Big thanks to @lmmx for driving this.
- Added a
prek cache sizesubcommand so you can quickly see how much cache space prek is using. Thanks @MatthewMckee4! - Nested workspaces are easier to reason about: set
orphan: trueon a project to isolate it from parents so its files are processed only once.
Want to show your project runs on prek? Add our README badge to your docs or repo homepage:
Enhancements
- Support Rust language (#989)
- Add
prek cache sizecommand (#1183) - Support orphan projects (#1129)
- Fallback to
manualstage for hooks specified directly in command line (#1185) - Make go module cache read-writeable (thus deletable) (#1164)
- Provide more information when validating configs and manifests (#1182)
- Improve error message for invalid number of arguments to hook-impl (#1196)
Bug fixes
- Disable git terminal prompts (#1193)
- Prevent
post-checkoutdeadlock when cloning repos (#1192) - Prevent color output when redirecting stdout to a file (#1159)
Documentation
- Add MacPorts to installation methods (#1157)
- Add a FAQ page explaining
prek install --install--hooks(#1162)
Other changes
Contributors
Install prek 0.2.20
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.20/prek-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/j178/prek/releases/download/v0.2.20/prek-installer.ps1 | iex"Install prebuilt binaries via Homebrew
brew install j178/tap/prekInstall prebuilt binaries into your npm project
npm install @j178/prek@0.2.20