From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#33911: SWH fallback is never reached due to an uncaught exception Date: Sat, 29 Dec 2018 16:47:45 +0100 Message-ID: <20181229164745.2f383663@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/3Qw1u/OT.6dF8dsSvnj7I1T"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdHSj-0005j3-5U for bug-guix@gnu.org; Sat, 29 Dec 2018 11:27:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdHNi-0000pA-Mt for bug-guix@gnu.org; Sat, 29 Dec 2018 11:22:39 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gdH1v-0002Dc-L3 for bug-guix@gnu.org; Sat, 29 Dec 2018 11:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gdH1v-0002xp-DR for bug-guix@gnu.org; Sat, 29 Dec 2018 11:00:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: 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 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) 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: 33911@debbugs.gnu.org --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--