From unknown Fri Jun 20 07:18:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33911 <33911@debbugs.gnu.org> To: bug#33911 <33911@debbugs.gnu.org> Subject: Status: SWH fallback is never reached due to an uncaught exception Reply-To: bug#33911 <33911@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:18:05 +0000 retitle 33911 SWH fallback is never reached due to an uncaught exception reassign 33911 guix submitter 33911 Bj=C3=B6rn H=C3=B6fling severity 33911 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 10:59:58 2018 Received: (at submit) by debbugs.gnu.org; 29 Dec 2018 15:59:58 +0000 Received: from localhost ([127.0.0.1]:41620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdH1q-0002wx-F8 for submit@debbugs.gnu.org; Sat, 29 Dec 2018 10:59:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdH1o-0002we-MJ for submit@debbugs.gnu.org; Sat, 29 Dec 2018 10:59:57 -0500 Received: from lists.gnu.org ([208.118.235.17]:40813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gdH1a-0001fo-A4 for submit@debbugs.gnu.org; Sat, 29 Dec 2018 10:59:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdH1S-0001ji-OC for bug-guix@gnu.org; Sat, 29 Dec 2018 10:59:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FROM_EXCESS_BASE64 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdGq6-0004d3-4K for bug-guix@gnu.org; Sat, 29 Dec 2018 10:47:53 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:51544 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdGq5-0004bY-Qm for bug-guix@gnu.org; Sat, 29 Dec 2018 10:47:50 -0500 Received: from alma-ubu (p508AC390.dip0.t-ipconnect.de [80.138.195.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 07D46403C3 for ; Sat, 29 Dec 2018 16:47:46 +0100 (CET) Date: Sat, 29 Dec 2018 16:47:45 +0100 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Subject: SWH fallback is never reached due to an uncaught exception Message-ID: <20181229164745.2f383663@alma-ubu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/3Qw1u/OT.6dF8dsSvnj7I1T"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 83.151.27.109 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit 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: -5.9 (-----) --Sig_/3Qw1u/OT.6dF8dsSvnj7I1T Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable git-download has a built-in option to download from Software Heritage (SWH) as a fall-back, when a repository is unavailable. Unfortunately, that code is never reached: ./pre-inst-env guix build guile-bash --no-substitutes --no-grafts -S The following derivation will be built: /gnu/store/1y7jrh6szq3xlcissh4m963pvvygv3m4-guile-bash-0.1.6-0.1eabc56-c= heckout.drv building /gnu/store/1y7jrh6szq3xlcissh4m963pvvygv3m4-guile-bash-0.1.6-0.1ea= bc56-checkout.drv... environment variable `PATH' set to `/gnu/store/q09sy224qnxrp982z4xfaxi19721= mjx8-gzip-1.9/bin:/gnu/store/ipx79bfj2mrc8npj7s3qi3zri11jfhaw-tar-1.30/bin' Initialized empty Git repository in /gnu/store/7p7mkiqv9ah6x0x20qzpas44sdf7= jqkl-guile-bash-0.1.6-0.1eabc56-checkout/.git/ fatal: repository 'https://anonscm.debian.org/cgit/users/kaction-guest/reti= red/dev.guile-bash.git/' not found Failed to do a shallow fetch; retrying a full fetch... fatal: repository 'https://anonscm.debian.org/cgit/users/kaction-guest/reti= red/dev.guile-bash.git/' not found Backtrace: 3 (primitive-load "/gnu/store/4qlm9ih5nhwj38jl46vdy3s37qj?") In ice-9/eval.scm: 293:34 2 (_ #) In ./guix/build/git.scm: 50:10 1 (git-fetch "https://anonscm.debian.org/cgit/users/kact?" ?) In ./guix/build/utils.scm: 616:6 0 (invoke _ . _) ./guix/build/utils.scm:616:6: In procedure invoke: Throw to key `srfi-34' with args `(#)'. builder for `/gnu/store/1y7jrh6szq3xlcissh4m963pvvygv3m4-guile-bash-0.1.6-0= .1eabc56-checkout.drv' failed with exit code 1 build of /gnu/store/1y7jrh6szq3xlcissh4m963pvvygv3m4-guile-bash-0.1.6-0.1ea= bc56-checkout.drv failed View build log at '/var/log/guix/drvs/1y/7jrh6szq3xlcissh4m963pvvygv3m4-gui= le-bash-0.1.6-0.1eabc56-checkout.drv.bz2'. guix build: error: build failed: build of `/gnu/store/1y7jrh6szq3xlcissh4m9= 63pvvygv3m4-guile-bash-0.1.6-0.1eabc56-checkout.drv' failed The code is in git-download.scm, line 133: (or (git-fetch (getenv "git url") (getenv "git commit") #$output #:recursive? recursive? #:git-command (string-append #+git "/bin/git")) (download-nar #$output) ;; As a last resort, attempt to download from Software Heri= tage. ;; XXX: Currently recursive checkouts are not supported. (and (not recursive?) (swh-download (getenv "git url") (getenv "git commit") #$output))))))) If I change the order of the or and add the shw-download first, it works. Bj=C3=B6rn --Sig_/3Qw1u/OT.6dF8dsSvnj7I1T Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlwnlyIACgkQvyhstlk+X/2XCQCgtl0NnkVRSTOMCB60riicww1l YdMAoJbCaOSqIngOr+A/SiHU05RC77N7 =RQmK -----END PGP SIGNATURE----- --Sig_/3Qw1u/OT.6dF8dsSvnj7I1T-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 06 05:38:26 2019 Received: (at 33911-done) by debbugs.gnu.org; 6 Jan 2019 10:38:27 +0000 Received: from localhost ([127.0.0.1]:48249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gg5p4-0005aj-KY for submit@debbugs.gnu.org; Sun, 06 Jan 2019 05:38:26 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:36722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gg5p2-0005aW-IY for 33911-done@debbugs.gnu.org; Sun, 06 Jan 2019 05:38:25 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 855A8755; Sun, 6 Jan 2019 11:38:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lSkJSozAn2hr; Sun, 6 Jan 2019 11:38:22 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 49A35E0; Sun, 6 Jan 2019 11:38:22 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?Bj=C3=B6rn_H=C3=B6fling?= Subject: Re: bug#33911: SWH fallback is never reached due to an uncaught exception References: <20181229164745.2f383663@alma-ubu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?utf-8?Q?Niv=C3=B4se?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Sun, 06 Jan 2019 11:38:20 +0100 In-Reply-To: <20181229164745.2f383663@alma-ubu> (=?utf-8?Q?=22Bj=C3=B6rn?= =?utf-8?Q?_H=C3=B6fling=22's?= message of "Sat, 29 Dec 2018 16:47:45 +0100") Message-ID: <87ftu6ystf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 33911-done Cc: 33911-done@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: -0.0 (/) Hi Bj=C3=B6rn, Good catch! I believe the bug was introduced by 329dabe13bf98b899b907b45565434c5140804f5. I suppose I didn=E2=80=99t see it when hacking on SWH support because I commented out the =E2=80=98git-fetch= =E2=80=99 call to test the other path. Bj=C3=B6rn H=C3=B6fling skribis: > The code is in git-download.scm, line 133: > > (or (git-fetch (getenv "git url") (getenv "git commit") > #$output > #:recursive? recursive? > #:git-command (string-append #+git "/bin/git")) > (download-nar #$output) > > ;; As a last resort, attempt to download from Software He= ritage. > ;; XXX: Currently recursive checkouts are not supported. > (and (not recursive?) > (swh-download (getenv "git url") (getenv "git commit= ") > #$output))))))) Fixed in commit 18524466bb25a1926277b1111d15fb378ff7941e. Now I get: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build -S guile-bash --check building /gnu/store/7w2xsqy12lyfshgpz61z8cg3s5zjsscs-guile-bash-0.1.6-0.1ea= bc56-checkout.drv... environment variable `PATH' set to `/gnu/store/q09sy224qnxrp982z4xfaxi19721= mjx8-gzip-1.9/bin:/gnu/store/ipx79bfj2mrc8npj7s3qi3zri11jfhaw-tar-1.30/bin' Initialized empty Git repository in /gnu/store/7p7mkiqv9ah6x0x20qzpas44sdf7= jqkl-guile-bash-0.1.6-0.1eabc56-checkout/.git/ fatal: repository 'https://anonscm.debian.org/cgit/users/kaction-guest/reti= red/dev.guile-bash.git/' not found Failed to do a shallow fetch; retrying a full fetch... fatal: repository 'https://anonscm.debian.org/cgit/users/kaction-guest/reti= red/dev.guile-bash.git/' not found git-fetch: '/gnu/store/26s82xpawy0z13lfhkd7iprr2ahcbl5f-git-minimal-2.20.1/= bin/git fetch origin' failed with exit code 128 Trying content-addressed mirror at mirror.hydra.gnu.org... Downloading from http://mirror.hydra.gnu.org/guix/nar/gzip/7p7mkiqv9ah6x0x2= 0qzpas44sdf7jqkl-guile-bash-0.1.6-0.1eabc56-checkout (0.04 MiB)... 7p7mki...-guile-bash-0.1.6-0.1eabc56-checkout 37KiB 730KiB/s 00:00 [#####= #############] 100.0% /gnu/store/7p7mkiqv9ah6x0x20qzpas44sdf7jqkl-guile-bash-0.1.6-0.1eabc56-chec= kout --8<---------------cut here---------------end--------------->8--- Thanks for the heads-up! Ludo=E2=80=99. From unknown Fri Jun 20 07:18:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 03 Feb 2019 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator