Tim Harder <radher...@gentoo.org> writes:

> For anyone interested,
>
> I've hacked up an initial, rough implementation of a pkgcruft-git
> service that enables verifying ebuild commits during git's pre-receive
> hook phase.
>
> Currently it comes with a simple script that runs a local demo instance
> targeting the gentoo repo by default.
>
> You can find the code and demo instructions in the pkgcruft-git crate
> directory of the pkgcraft repo [1].

I've packaged this now as dev-vcs/pkgcruft-git (live-only for now). I'm
using the pre-push support you added (thank you!) locally with the
following in .git/hooks/pre-push:

    pkgcruft-git-pre-push origin git+ssh://g...@git.gentoo.org/repo/gentoo.git

and going from there. I encourage others to give it a go and share
feedback too.
>
> If I can find the time, I'll try to write up a dev blog post about the
> service design in more detail as well as next steps if there is interest
> in trying to use it in any official fashion in the future.

Definitely. My hope is we can get this deployed on infra, but I think
it's going to be really valuable even without that locally.

Great work!

>
> Thanks,
> Tim
>
> [1]: https://github.com/pkgcraft/pkgcraft/tree/main/crates/pkgcruft-git

thanks,
sam

Reply via email to