zlacker

[return to "Hk, a new Git hook manager"]
1. timhh+tm[view] [source] 2025-02-17 18:35:50
>>DrBenC+(OP)
Interesting. I've been working on a pre-commit replacement too, written in Rust but using WASI for all plugins (no exceptions!). I haven't got very far but I think this will have huge advantages over pre-commit, mostly in reliability.

Me and my colleagues have had numerous issues setting up pre-commit because it inherits Python's atrocious infrastructure.

I'm curious how this is going to deal with actually running plugins? Will it take the same approach as pre-commit and add dedicated not-very-good support for a load of different languages?

◧◩
2. jdxcod+2C[view] [source] 2025-02-17 20:13:10
>>timhh+tm
I also looked into WASI as well as lua until I ultimately decided that I think I can get rid of the concept of plugins altogether in favor of pkl. We'll see how well that works out but right now I don't have any use-cases that would require plugins and if I can stick to that it will definitely help performance.
◧◩◪
3. timhh+rG[view] [source] 2025-02-17 20:50:48
>>jdxcod+2C
I don't really understand. Pkl seems to be a configuration language? How are you going to run clang-format, rustfmt, go fmt, pyright, etc. using Pkl?
◧◩◪◨
4. jdxcod+7M[view] [source] 2025-02-17 21:35:06
>>timhh+rG
it just needs to define shell script
◧◩◪◨⬒
5. timhh+SO[view] [source] 2025-02-17 21:59:25
>>jdxcod+7M
So you have to already have all the linters installed? Ok I am planning to solve that problem too, but we'll have to see whether it's actually possible to compile e.g. rustfmt to WASI. In my experience so far WASI is pretty alpha quality.
[go to top]