Hi,

Maxim Cournoyer <[email protected]> skribis:

> The problem reported here, IIUC, is that it can leave a broken hook in
> the Guix repo when the user ran it before running 'make', which appears
> to match the documented recommendations from (info "(guix) Building from
> Git"), added in commit 73b3f941d7d911a1b2bb2bf77d37cb3a12ed4291 ("maint:
> Suggest ‘guix git authenticate’ for initial authentication.").

Oh, I see.

> I see two ways to fix this:
>
> 1. 'guix git authenticate' smarter not install its own hooks when
> working from a Guix checkout (by checking the git remote, for example).

Or rather, add a ‘--no-hooks’ option and suggest using it in the case of
a Guix checkout.

> 2. make the hooks targets .PHONY (force them to run all the time), and
> compare copy the source hook over the target hook when its checksum
> differs (using e.g. coreutils' cksum).

That could be quite annoying though, for instance if you do want to
locally modify the hook for some reason and it constantly gets
overwritten.

Thanks,
Ludo’.

Reply via email to