Skip to content

v0.4.1

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 05:40
· 3 commits to main since this release

Patch release, no breaking changes. MSRV stays 1.83.

Upgrade if you use prek mode in a git worktree or submodule — that
combination failed to build in 0.4.0.

cargo update -p husky-rs

Fixes

  • prek mode failed in worktrees and submodules. .git is a file there, so
    prek install --git-dir <root>/.git aborted with
    failed to create directory ...: Not a directory (os error 20). Now resolves
    the git common dir via git rev-parse --git-common-dir (git 2.5+).
  • CARGO_TARGET_DIR outside the repo silently installed nothing. The build
    script finds the project from OUT_DIR; it now emits a diagnostic. Note that
    cargo hides build-script warnings from registry dependencies unless you pass
    -vv, so cargo build -vv is how you see it. Suppressed on docs.rs.
  • .husky as a file fails fast on every platform, not just Unix.

Added

  • push-to-checkout in SUPPORTED_HOOKS (28 hooks), so is_valid_hook_name
    accepts it.

Internal

  • CI's msrv job pinned the stable toolchain, so 1.83 was never tested. Fixed.
  • Tests 85 → 93; two previously passed without asserting anything.

Full diff: v0.4.0...v0.4.1