From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#34778: Guix refresh -u fails Date: Fri, 08 Mar 2019 23:30:09 +0100 Message-ID: <87h8cdc83y.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2O19-0007Cr-Ti for bug-guix@gnu.org; Fri, 08 Mar 2019 17:31:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2O19-0000CU-3a for bug-guix@gnu.org; Fri, 08 Mar 2019 17:31:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2O18-0000CG-UA for bug-guix@gnu.org; Fri, 08 Mar 2019 17:31:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h2O18-00018C-Oe for bug-guix@gnu.org; Fri, 08 Mar 2019 17:31:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Thu, 7 Mar 2019 09:28:21 +0100") 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: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 34778-done@debbugs.gnu.org Hi G=C3=A1bor, G=C3=A1bor Boskovits skribis: > guix refresh -u unibilium > fails with the following backtrace: > gabriel@guixsd ~/guix$ ./pre-inst-env guix refresh -u unibilium > Backtrace: > 14 (apply-smob/1 #) > In ice-9/boot-9.scm: > 705:2 13 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 12 (_ #(#(#))) > In guix/ui.scm: > 1654:12 11 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 829:9 10 (catch _ _ # =E2=80=A6) > 829:9 9 (catch _ _ # =E2=80=A6) > In guix/scripts/refresh.scm: > 513:8 8 (_) > In guix/store.scm: > 1737:24 7 (run-with-store _ _ #:guile-for-build _ #:system _ # _) > In guix/scripts/refresh.scm: > 531:16 6 (_ _) > In srfi/srfi-1.scm: > 640:9 5 (for-each # =E2=80=A6) > In guix/scripts/refresh.scm: > 301:20 4 (update-package # # =E2=80=A6) > In guix/upstream.scm: > 374:22 3 (package-update # _ _ # _) > 302:17 2 (download-tarball # #f # =E2= =80=A6) > In guix/download.scm: > 568:55 1 (download-to-store # #f =E2= =80=A6) > In unknown file: > 0 (basename #f #) > > ERROR: In procedure basename: > In procedure scm_to_utf8_stringn: Wrong type argument in position 1 > (expecting string): #f This is because unibilium uses =E2=80=98git-fetch=E2=80=99, and currently = =E2=80=98guix refresh -u=E2=80=99 only knows how to download tarballs, it doesn=E2=80=99t know ho= w to make Git checkouts. Commit 0bd1498fc40820be35125cc0a62482d015b58e9b fixes the issue by at least reporting a proper error message. We=E2=80=99ll have to adjust to support not just tarball = URLs, as is currently the case, but also Git references. Thanks, Ludo=E2=80=99.