From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 16 12:55:04 2019 Received: (at 36781) by debbugs.gnu.org; 16 Aug 2019 16:55:05 +0000 Received: from localhost ([127.0.0.1]:54831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyfVI-0002gO-J8 for submit@debbugs.gnu.org; Fri, 16 Aug 2019 12:55:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyfVG-0002fi-Ff for 36781@debbugs.gnu.org; Fri, 16 Aug 2019 12:55:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hyfVA-0006b3-Hy; Fri, 16 Aug 2019 12:54:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50072 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hyfV9-0008Nf-W9; Fri, 16 Aug 2019 12:54:56 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#36781: Website manual generation stopped References: <87lfwlrahj.fsf@gnu.org> <20190730180751.0393f16f@sybil.lepiller.eu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Thermidor an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 16 Aug 2019 18:54:53 +0200 In-Reply-To: <20190730180751.0393f16f@sybil.lepiller.eu> (Julien Lepiller's message of "Tue, 30 Jul 2019 18:07:51 +0200") Message-ID: <87blwpgiea.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36781 Cc: 36781@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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.