Hi Tomas,

Tomas Volf <[email protected]> writes:

> Hello,
>
> if there is no .git/hooks directory, compilation of Guix fails:
>
> $ git clone https://codeberg.org/guix/guix.git guix-proper
> $ cd guix-proper
> $ rm -r .git/hooks
> $ 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.

I tried to reproduce the above failure, but couldn't (it succeeds).

--8<---------------cut here---------------start------------->8---
$ git reset --hard 7425732996995c4b8074ea87e132c6198d1f40d5
$ rm -r .git/hooks
$ guix shell -CD guix -- ./bootstrap
$ guix shell -CD guix -- ./configure
$ guix shell -CD guix -- make
[...]
if [ -n ".git/hooks" ]; then mkdir -p ".git/hooks"; fi
if [ -n ".git/hooks" ]; then cp "etc/git/post-merge" ".git/hooks/post-merge"; fi
if [ -n ".git/hooks" ]; then \
  if test -f .git/hooks/commit-msg  && ! grep -qF 
VGhpcyBpcyB0aGUgY29tbWl0LW1zZyBob29rIG9mIEd1aXg= .git/hooks/commit-msg; then \
    mkdir -p .git/hooks/commit-msg.d && mv .git/hooks/commit-msg 
.git/hooks/commit-msg.d && \
    echo user commit-msg hook moved to .git/hooks/commit-msg.d/commit-msg; \
  fi && \
  cp etc/git/commit-msg .git/hooks/commit-msg; \
fi
  GEN      etc/openrc/guix-daemon
  GEN      etc/gnu-store.mount
  GEN      etc/guix-daemon.service
  GEN      etc/guix-publish.service
  GEN      etc/guix-gc.service
  GEN      etc/guix-gc.timer
  GEN      etc/init.d/guix-daemon
  GEN      etc/guix-daemon.conf
  GEN      etc/guix-publish.conf
make[2]: Leaving directory '/tmp/guix'
make[1]: Leaving directory '/tmp/guix'
maxim@terra /tmp/guix$ echo $?
0
--8<---------------cut here---------------end--------------->8---

Is that's still an issue for you, as of commit
7425732996995c4b8074ea87e132c6198d1f40d5?

-- 
Thanks,
Maxim



Reply via email to