From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36781: Website manual generation stopped Date: Fri, 16 Aug 2019 18:54:53 +0200 Message-ID: <87blwpgiea.fsf@gnu.org> References: <87lfwlrahj.fsf@gnu.org> <20190730180751.0393f16f@sybil.lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47286) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyfWG-0007G3-3h for bug-guix@gnu.org; Fri, 16 Aug 2019 12:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyfWE-0007H1-CL for bug-guix@gnu.org; Fri, 16 Aug 2019 12:56:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46010) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyfWE-0007Gr-8L for bug-guix@gnu.org; Fri, 16 Aug 2019 12:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyfWE-0002hl-69 for bug-guix@gnu.org; Fri, 16 Aug 2019 12:56:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190730180751.0393f16f@sybil.lepiller.eu> (Julien Lepiller's message of "Tue, 30 Jul 2019 18:07:51 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Julien Lepiller Cc: 36781@debbugs.gnu.org Hi Julien, Julien Lepiller skribis: > Le Fri, 26 Jul 2019 00:54:32 +0200, > Ludovic Court=C3=A8s a =C3=A9crit : [...] >> Indeed it fails like this: >>=20 >> --8<---------------cut here---------------start------------->8--- >> ludo@berlin ~$ sudo su - static-web-site >> -c /gnu/store/9w4bbd6gqya2g9zvwgs6qab6aqgbjbd3-update-guix-manual-devel >> Backtrace: 7 (primitive-load >> "/gnu/store/9w4bbd6gqya2g9zvwgs6qab6aqg=E2=80=A6") In ice-9/eval.scm: >> 619:8 6 (_ #f) >> 626:19 5 (_ #) >> In unknown file: >> 4 (_ # #<=E2= =80=A6> >> =E2=80=A6) In guix/git.scm: >> 240:29 3 (update-cached-checkout "https://git.sv.gnu.org/git/gu=E2= =80=A6" >> =E2=80=A6) In ice-9/boot-9.scm: >> 841:4 2 (with-throw-handler _ _ _) >> In git/clone.scm: >> 41:8 1 (_ _ _ _) >> In ice-9/boot-9.scm: >> 752:25 0 (dispatch-exception _ _ _) >>=20 >> ice-9/boot-9.scm:752:25: In procedure dispatch-exception: >> Git error: cross host redirect not allowed >> --8<---------------cut here---------------end--------------->8--- >>=20 >> So I think we have to change the repo URL in berlin.scm. >>=20 >> Ludo=E2=80=99. > > One way I can see to solve that issue is to specify a custome cache > directory name, instead of the default one, which is a hash of the url. > The reason why we use git.sv.gnu.org instead of git.savannah.gnu.org > is that otherwise both repos have the same cache directory, so one wins > over the other. But that hack doesn't scale if we want to generate more > than two manual versions. > > Attached is a patch that adds a cache-directory field to the > static-website-configuration record. OK. > Another solution is to fix (guix git) to also add the ref as part of > the hash, so the cache directory is different for two different > branches of the same repository. I thought about doing that. It=E2=80=99d work but it=E2=80=99d also be sli= ghtly wasteful since branches of a repo typically have a lot in common. Another option would be to compute the cache directory name like you write, but only in the (sysadmin web) module. WDYT? Thanks, Ludo=E2=80=99.