-
Notifications
You must be signed in to change notification settings - Fork 3
chore(nix): migrate lefthook from npm to nix #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,6 +37,9 @@ | |||||||||
|
|
||||||||||
| # security | ||||||||||
| gitleaks | ||||||||||
|
|
||||||||||
| # git hooks | ||||||||||
| lefthook | ||||||||||
| ]; | ||||||||||
|
|
||||||||||
| shellHook = '' | ||||||||||
|
|
@@ -47,6 +50,9 @@ | |||||||||
| echo "📦 Installing dependencies..." | ||||||||||
| pnpm install --frozen-lockfile | ||||||||||
| fi | ||||||||||
| # Install lefthook git hooks | ||||||||||
| lefthook install > /dev/null 2>&1 | ||||||||||
|
Comment on lines
+54
to
+55
|
||||||||||
| # Install lefthook git hooks | |
| lefthook install > /dev/null 2>&1 | |
| # Install lefthook git hooks (suppress stdout but keep stderr visible) | |
| lefthook install > /dev/null |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2:
lefthook installredirects stderr to/dev/null, so hook-install failures are silent and the devshell keeps running without required hooks. Let stderr surface (or explicitly handle failures) so developers notice problems.Prompt for AI agents