News for hackers. Stuff that matters.
Re:Pre-commit hooks are fundamentally broken by eru on Saturday December 27, 2025 @04:18AM (#46400413)
> This includes Git. Don't try to force any particular workflow, including mandatory or automatically-enabled hooks.

And with git, you can even make anything that happens on the dev machines mandatory.

Anything you want to be mandatory needs to go into your CI. Pre-commit and pre-push hooks are just there to lower CI churn, not to guarantee anything.

(With the exception of people accidentally pushing secrets. The CI is too late for that, and a pre-push hook is a good idea.)

Re:Pre-commit hooks are fundamentally broken by normie3000 on Saturday December 27, 2025 @04:24AM (#46400438)
> with git, you can even make anything that happens on the dev machines mandatory

s/can/can't?

Re:Pre-commit hooks are fundamentally broken by eru on Saturday December 27, 2025 @01:25PM (#46403948)
Yes, indeed.
Re:Pre-commit hooks are fundamentally broken by mycall on Sunday December 28, 2025 @11:19AM (#46412118)
You can an an enterprise environment when following SOPs are mandatory due to cybersecurity and infrastructure requirements.
Re:Pre-commit hooks are fundamentally broken by darkwater on Saturday December 27, 2025 @05:37AM (#46400757)
A good analogy is: git hooks are client-side validation; CI is server-side validation, aka the only validation you can trust.
Re:Pre-commit hooks are fundamentally broken by beezlewax on Sunday December 28, 2025 @05:03PM (#46414971)
You can run git commit with a --no-verify flag to skip these hooks