| ▲ | jayd16 5 hours ago | |||||||||||||
Why waste a round trip, build time, loss of flow and CI machine queue wait time when you can catch things early? CI should also run all the checks but CI checks are not a replacement for local hooks. LFS and things like it can't be implemented as remote CI checks. Why are we acting like a James Bond villain, slowly lowering the changes into the vat of sharks after we've left the room? I want the hooks. Can we talk about making that easy, assuming some people want them? | ||||||||||||||
| ▲ | n_e 3 hours ago | parent | next [-] | |||||||||||||
> Why waste a round trip, build time, loss of flow and CI machine queue wait time when you can catch things early? Because we want to be sure that the checks have passed, and that they have passed in a clean environment. Contributors can, in addition, use git hooks, or run tests in watch mode, or use their IDE. Also it's annoying to have slow git hooks if you commit often. | ||||||||||||||
| ▲ | crote 3 hours ago | parent | prev | next [-] | |||||||||||||
You're looking for a technological solution for a human problem. Automatically running arbitrary code from random repositories is a Really Bad Idea, so Git will almost certainly never auto-install pre-commit hooks. Just mention it in the README and run a checker in CI to confirm they are using it, it really isn't that difficult. People wasting 2 minutes of their own time once during their first contribution because they didn't read the README is not that big of a deal. What's next, you want a script to automatically sign a project's legally-binding CLA on checkout? | ||||||||||||||
| ||||||||||||||
| ▲ | krzyk 2 hours ago | parent | prev [-] | |||||||||||||
Local hooks are just a convenience. CI checks are assurances, you have to have them. If one hates the round-trip he/she will adopt hooks quickly. | ||||||||||||||
| ||||||||||||||