From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sFDvD839BmC8AQAA0tVLHw (envelope-from ) for ; Tue, 19 Jan 2021 15:42:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gLrNC839BmB4GAAA1q6Kng (envelope-from ) for ; Tue, 19 Jan 2021 15:42:05 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D4B579404E4 for ; Tue, 19 Jan 2021 15:42:04 +0000 (UTC) Received: from localhost ([::1]:51292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1t8t-0002dj-Kv for larch@yhetil.org; Tue, 19 Jan 2021 10:42:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1stQ-0002Dl-HM for guix-patches@gnu.org; Tue, 19 Jan 2021 10:26:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1stO-0003Sc-Cf for guix-patches@gnu.org; Tue, 19 Jan 2021 10:26:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1stO-00046X-9b for guix-patches@gnu.org; Tue, 19 Jan 2021 10:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45983] [PATCH 0/3] Fix non-recursive importers gnu and json Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Jan 2021 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45983 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45983@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161106993415726 (code B ref -1); Tue, 19 Jan 2021 15:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jan 2021 15:25:34 +0000 Received: from localhost ([127.0.0.1]:51294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1ssv-00045Z-P2 for submit@debbugs.gnu.org; Tue, 19 Jan 2021 10:25:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:60376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1sst-00045P-0L for submit@debbugs.gnu.org; Tue, 19 Jan 2021 10:25:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1sss-0001Jt-IM for guix-patches@gnu.org; Tue, 19 Jan 2021 10:25:30 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:37876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1ssq-0003NT-Rf for guix-patches@gnu.org; Tue, 19 Jan 2021 10:25:30 -0500 Received: by mail-wr1-x429.google.com with SMTP id v15so16477436wrx.4 for ; Tue, 19 Jan 2021 07:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+CV0+1wQm485U47gfbNXEwFVYptUFu/K+H79AZNcK7k=; b=gSSTL1SeeeSFlw6mtJZRvOsgD2VzAjBRg11GgrgosDebYqmaiBvDZHMW9VPLDK1yNE DSN8Br5KHlmhsgzLIZTUl0P57+n7g0wa1k+uNGHzJpSgRuolxwj0l1qS6soRGJ+fN0zM jhhXt7HPHvtxqv0ZoRYNph0idW2kn/s8C//O7hjXqhXiR5CQsrqrKzkL74OKqBWhE8de ad+AiTWAboL98uel+VIuKowdMFXDgeE7PZ79uHKy0mRlKaPrJqxWTNk1NycpR3xxBwKJ 1JlU+6irSyjd8hZEOvJupPhO9mTXTHbkD41MNCYBoIDm9gPUPoQ68jQ9hcfTAnf1dlah 78Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+CV0+1wQm485U47gfbNXEwFVYptUFu/K+H79AZNcK7k=; b=XZ0kw8W53CvDb73f3YaiztRDDxJQtc3klijaCU4uT9j7Z+qKIKwEJW44lDAsoGd9PZ FlujiPQ7+K9oXS3cGZoGE+h9FZ3TYwrX2CZNi5QqCWdyPCqWUzsvGmUtsxZ6m/etR3zK JH8YctfGbVGuhP3cE+Rad4mc+5kwSICDoUoLWi9U5dE1ElfKr2HMzIg8PVPDxUZS1Juj w6CJqz5Jor5mHdR7XlRWL2w6Mc8Em8R/9Zuie3NRRGqqWjRFTSew/DgGJA6SGwPogP/6 2kV+80VRHgpnyKrQqyR5DGiwo0EfRuukRyyUjcucyj2cPt0BukRLguugNPC4F9wFq+rt /vbg== X-Gm-Message-State: AOAM531pQI16+qg0F86D1K6onYrJv1UEZzTlbW/94fRdjKTJzoxAODs5 4XCrsz5vuoMJdRjB1yFy6dbx4EwZ3vE= X-Google-Smtp-Source: ABdhPJx3y2TsfpYTc6YOQMhw3SahcErTE65nOSI9Ohufw+/Dxe8oSKzaoyyY+D9Jxlorh3ppnJw6+A== X-Received: by 2002:adf:ae01:: with SMTP id x1mr4862184wrc.381.1611069926662; Tue, 19 Jan 2021 07:25:26 -0800 (PST) Received: from lili.univ-paris-diderot.fr ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c16sm35675055wrx.51.2021.01.19.07.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jan 2021 07:25:26 -0800 (PST) From: zimoun Date: Tue, 19 Jan 2021 16:25:18 +0100 Message-Id: <20210119152518.3464-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=gSSTL1Se; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D4B579404E4 X-Spam-Score: 2.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: /v4BiOfWVjhL Dear, The first patch is cosmetic. Even, the file guix/import/gnu.scm should not contain UI messages, IMHO. Another story. The two other patches fix the ugly backtrace throw by: guix import gnu do-not-exist guix import json do-no-exist with something like: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix import gnu do-not-exist guix import: error: failed to determine latest release of GNU do-not-exist $ ./pre-inst-env guix import json do-not-exist guix import: error: invalid file name --8<---------------cut here---------------end--------------->8--- See bug#44115 for details about the bug. All the best, simon zimoun (3): import: gnu: Add internationalized messages. guix: gnu-maintenance: Fix error handling. scripts: import: json: Fix error handling. guix/gnu-maintenance.scm | 5 ++++- guix/import/gnu.scm | 11 +++++++++-- guix/scripts/import/json.scm | 7 +++++-- 3 files changed, 18 insertions(+), 5 deletions(-) base-commit: 2d9c6542c804eb2ef3d8934e1e3ab8b24e9bbafb -- 2.29.2