From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#34136: guix pull -l fails on fresh user profiles Date: Sat, 19 Jan 2019 18:55:05 +0100 Message-ID: <874la48rd2.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkuqi-0003p0-QP for bug-guix@gnu.org; Sat, 19 Jan 2019 12:56:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkuqh-0006gZ-0C for bug-guix@gnu.org; Sat, 19 Jan 2019 12:56:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkuqg-0006gQ-Tf for bug-guix@gnu.org; Sat, 19 Jan 2019 12:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gkuqg-0003N4-Mx for bug-guix@gnu.org; Sat, 19 Jan 2019 12:56:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:55026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkupp-0003dx-Vq for bug-guix@gnu.org; Sat, 19 Jan 2019 12:55:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkupo-0005uz-CQ for bug-guix@gnu.org; Sat, 19 Jan 2019 12:55:09 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:57225) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkupo-0005sD-5p for bug-guix@gnu.org; Sat, 19 Jan 2019 12:55:08 -0500 Received: from mimimi (lfbn-1-802-102.w86-246.abo.wanadoo.fr [86.246.38.102]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 8A804100003 for ; Sat, 19 Jan 2019 17:55:05 +0000 (UTC) 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: 34136@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Switch to a new user, or simply log in as 'root' if you've never "guix pull"ed with it, then =2D-8<---------------cut here---------------start------------->8--- # guix pull -l Backtrace: 8 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 7 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 6 (_ #(#(#))) In guix/ui.scm: 1644:12 5 (run-guix-command _ . _) In ice-9/boot-9.scm: 829:9 4 (catch srfi-34 # =E2=80=A6) 829:9 3 (catch system-error # =E2=80=A6) 829:9 2 (catch git-error # =E2=80=A6) 829:9 1 (catch system-error # =E2=80=A6) In unknown file: 0 (raise #) ERROR: In procedure raise: Wrong type (expecting exact integer): # =2D-8<---------------cut here---------------end--------------->8--- I think we should make `guix pull -l' return a value that can be used meaningfully in deployment scripts. For instance, a non-zero exit code could mean this is a fresh user profile. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxDZHkACgkQm9z0l6S7 zH8Blgf+PNx3Jo2A7aYdTcv7zrZ4cpwRlFxDDO4doIhxSejrrtI1jGHJiVrfDoe3 HVRliSYQh9fY9VR5ex9nK/19dDTCuP8OiN3ZNulY5vusdVu6uTF67K+T87iphYM6 QPtMkxUqPhMEG71Iij84DFKiKOLUREeu5+TMxSzNCggJXSlJN57o8zrOv+XyPi9Q vAZ//Sfht/sr8INWA9n1Em0BzFQi4OyqFJsB3PgziH4lndjf+4CkzyaFjc5AIMC0 CXW0YhquNWUmjKh+TM/rwsCY5tAXgFnzIAz0+tsgD3Xha68AQgm2yUKsw3agbmnp KjQF7xy+3wKvfksKUfCZHV00Rs2+iw== =p0ST -----END PGP SIGNATURE----- --=-=-=--