Hi,

On Sat, 07 Mar 2026 at 18:36, Tomas Volf <[email protected]> wrote:

> if there is no .git/hooks directory, compilation of Guix fails:
>
> --8<---------------cut here---------------start------------->8---
> $ git clone https://codeberg.org/guix/guix.git guix-proper
> $ cd guix-proper
> $ rm -r .git/hooks

To me knowledge, the directory .git/hooks is created by ’git init’ or
’git clone’.

> $ guix shell -CD guix -- ./bootstrap
> $ guix shell -CD guix -- ./configure
> $ guix shell -CD guix -- make
> [..]
> make[2]: *** No rule to make target '.git/hooks/pre-push', needed by 
> 'all-am'.  Stop.
> --8<---------------cut here---------------end--------------->8---
>
> If the hooks directory is required, I think the build process should
> ensure it actually exists.

This is weird, because:

--8<---------------cut here---------------start------------->8---
GIT_HOOKS_DIR := $(shell git rev-parse --git-path hooks 2>/dev/null)
$(GIT_HOOKS_DIR):
        if [ -n "$(GIT_HOOKS_DIR)" ]; then mkdir -p "$@"; fi
--8<---------------cut here---------------end--------------->8---

Hum?

Cheers,
simon



Reply via email to