Skip to content

fix: pin shellcheck in .tool-versions for lefthook pre-commit - #1675

Merged
erikburt merged 2 commits into
mainfrom
fix/pre-commit-shellcheck-mise
Oct 1, 2026
Merged

erikburt merged 2 commits into
mainfrom
fix/pre-commit-shellcheck-mise

Conversation

@paigeCLL

Copy link
Copy Markdown
Contributor

Summary

  • Adds shellcheck 0.11.0 to .tool-versions.

Why

The shellcheck pre-commit hook (lefthook.yml) invokes the bare shellcheck binary, but it was never declared as a repo tool in .tool-versions. On fresh checkouts, mise does not install it, so any commit that stages a *.sh file fails with:

sh: shellcheck: command not found

This surfaced while resolving merge conflicts on #1674 (DX-4948). Pinning it in .tool-versions makes mise install it automatically for everyone, alongside the existing nodejs/pnpm pins.

Verified: mise install picks up the pin and shellcheck 0.11.0 resolves.

Notes / follow-ups

  • actionlint is also invoked by the pre-commit hook but is likewise not declared in .tool-versions — it only worked here because it was installed globally. It could be added the same way if desired.
  • tools/scripts/sync-reusable-workflows.sh (the workflows:fix hook) uses declare -A, which requires bash 4+ and therefore cannot run on macOS's stock bash 3.2 — a separate, pre-existing issue.

🤖 Generated with Claude Code

@paigeCLL
paigeCLL requested a review from a team as a code owner September 30, 2026 21:48
@paigeCLL
paigeCLL force-pushed the fix/pre-commit-shellcheck-mise branch from 3da5972 to 226c433 Compare September 30, 2026 22:52
@erikburt
erikburt enabled auto-merge (squash) October 1, 2026 23:56
@erikburt
erikburt merged commit d5fa7c7 into main Oct 1, 2026
18 of 19 checks passed
@erikburt
erikburt deleted the fix/pre-commit-shellcheck-mise branch October 1, 2026 23:57
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.

2 participants