From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#34136: guix pull -l fails on fresh user profiles Date: Sun, 20 Jan 2019 23:56:24 +0100 Message-ID: <87sgxnlyzr.fsf@gnu.org> References: <874la48rd2.fsf@ambrevar.xyz> 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]:59776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glM1Y-0001qd-Gs for bug-guix@gnu.org; Sun, 20 Jan 2019 17:57:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glM1W-0003bB-LW for bug-guix@gnu.org; Sun, 20 Jan 2019 17:57:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glM1W-0003aj-De for bug-guix@gnu.org; Sun, 20 Jan 2019 17:57:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glM1W-0007GX-98 for bug-guix@gnu.org; Sun, 20 Jan 2019 17:57:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <874la48rd2.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sat, 19 Jan 2019 18:55:05 +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: Pierre Neidhardt Cc: 34136-done@debbugs.gnu.org Pierre Neidhardt skribis: > Switch to a new user, or simply log in as 'root' if you've never "guix > pull"ed with it, then > > # 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): # Fixed in c49b45c917eff17122aea5f7a57ae4cef02f1003. A missing import and the wrong =E2=80=98raise=E2=80=99 was being used. > 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. Yep, that=E2=80=99s what was intended and what happens now. :-) Thanks, Ludo=E2=80=99.