Skip to content

chore(deps): update dependency aqua:evilmartians/lefthook to v2.1.8#68

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/aqua-evilmartians-lefthook-2.x
Open

chore(deps): update dependency aqua:evilmartians/lefthook to v2.1.8#68
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/aqua-evilmartians-lefthook-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 29, 2026

This PR contains the following updates:

Package Update Change Pending
aqua:evilmartians/lefthook patch 2.1.62.1.8 2.1.9

Release Notes

evilmartians/lefthook (aqua:evilmartians/lefthook)

v2.1.8

Compare Source

  • fix: do not warn if local hooks path is equal to default hooks path (#​1421) by @​mrexox

v2.1.7

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday (* 0-4,22-23 * * 1-5)
    • Only on Sunday and Saturday (* * * * 0,6)
  • 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 this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions
Copy link
Copy Markdown

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

Version 2.1.7 (2026-05-19) - Major Changes:

  • Critical fixes for stage_fixed functionality: Multiple fixes (#1418, #1417, #1416) to ensure unstaged changes are properly restored during hook execution and that stage_fixed is only applied when safe
  • Logger architecture refactor: New logger implementation without global state (#1385) - internal refactor with no API changes
  • Git branch handling improvement: Separated fallback push branch logic from pathspecs (#1396)
  • UI enhancement: Improved contrast colors for better terminal visibility (#1420)
  • Linter fixes: Code readability improvements

Version 2.1.8 (2026-05-19) - Patch Release:

  • Single bug fix: Removed unnecessary warning when local hooks path equals default hooks path (#1421)

Breaking Changes: None documented in either release

Security Fixes: None explicitly mentioned

🎯 Impact Scope Investigation

Lefthook Usage in Codebase:

  • Configuration file: lefthook.yml at repository root
  • Tool installation: Managed via mise.toml (aqua backend)
  • Current usage features:
    • pre-commit hooks: fmt, lint, gitleaks, hadolint
    • pre-push hooks: gitleaks
    • Uses stage_fixed: true on the fmt command (line 4 of lefthook.yml)

Relevant Impact:
The stage_fixed feature is actively used in this repository's lefthook.yml configuration for the Go formatter command. Version 2.1.7 includes critical fixes specifically for stage_fixed (#1418: "apply stage_fixed only if it is safe"), which actually improves safety and reliability for this exact use case.

Dependency Impact:
Lefthook is a development tool with no runtime dependencies. The update only affects the git hook execution environment and has no impact on:

  • Production code or Docker images
  • API behavior or sandbox execution
  • Other tools in mise.toml (golangci-lint, hadolint, language runtimes)

Configuration Compatibility:
The existing lefthook.yml configuration format remains fully compatible. No configuration changes are required.

💡 Recommended Actions

Immediate Actions:

  1. Merge this PR - The update is backward compatible and includes beneficial fixes
  2. No code changes required - Existing configuration works as-is
  3. No migration steps needed - Patch release with bug fixes only

Post-Merge Verification (Optional):

  1. Verify stage_fixed behavior works correctly: Make a Go file edit, stage it, make additional unstaged changes, and commit to ensure the fmt hook properly stages formatted changes while preserving unstaged modifications
  2. Confirm no unexpected warnings appear during hook execution

Benefits of Updating:

  • Improved reliability of stage_fixed feature currently in use
  • Better handling of unstaged changes during pre-commit hooks
  • Cleaner terminal output (no spurious warnings)
  • Improved code quality from internal refactoring

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants