| ▲ | timhh 6 hours ago | ||||||||||||||||||||||
I have also been working on an alternative written in Rust, but in my version the hooks are WASI programs. They run on a virtual filesystem backed by the Git repo. That means a) there are no security issues (they have no network access, and no file access outside the repo), b) you can run them in parallel, c) you can choose whether to apply fixes or not without needing explicit support from the plugin, and most importantly d) they work reliably. I'm sure this is more reliably than pre-commit, but you still have hooks building Python wheels and whatnot, which fails annoyingly often. The VFS stuff is not quite finished yet though (it's really complicated). If anyone wants to help me with that it would be welcome! | |||||||||||||||||||||||
| ▲ | jdxcode 6 hours ago | parent [-] | ||||||||||||||||||||||
the second the hooks modify the code they've broken your sandbox I think wasi is a cool way to handle this problem. I don't think security is a reason though. | |||||||||||||||||||||||
| |||||||||||||||||||||||