From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oCTxNf6kRmQ98wAASxT56A (envelope-from ) for ; Mon, 24 Apr 2023 17:49:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GMn8Nf6kRmQeRgAA9RJhRA (envelope-from ) for ; Mon, 24 Apr 2023 17:49:18 +0200 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 70D4D1A930 for ; Mon, 24 Apr 2023 17:49:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqyRC-0007AN-9r; Mon, 24 Apr 2023 11:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqyR5-00077g-Ad for guix-patches@gnu.org; Mon, 24 Apr 2023 11:49:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqyR5-0004C9-2n for guix-patches@gnu.org; Mon, 24 Apr 2023 11:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pqyR4-0006iY-DF for guix-patches@gnu.org; Mon, 24 Apr 2023 11:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63053] [PATCH 0/3] Fix "guix import crate" Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Apr 2023 15:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63053 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63053@debbugs.gnu.org Cc: Simon Tournier X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168235130225727 (code B ref -1); Mon, 24 Apr 2023 15:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Apr 2023 15:48:22 +0000 Received: from localhost ([127.0.0.1]:50145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqyQP-0006gq-Ho for submit@debbugs.gnu.org; Mon, 24 Apr 2023 11:48:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:59908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqyQI-0006g7-VF for submit@debbugs.gnu.org; Mon, 24 Apr 2023 11:48:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqyQI-0006kO-In for guix-patches@gnu.org; Mon, 24 Apr 2023 11:48:14 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqyQG-0003xk-Vl for guix-patches@gnu.org; Mon, 24 Apr 2023 11:48:14 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f174c4b404so8544135e9.1 for ; Mon, 24 Apr 2023 08:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682351291; x=1684943291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cw8koMDtUGDC16LZZb9ieaFLAsAaS9LlPNXf4CJXv08=; b=f+omkID/pvLuPhxtyKrkgh2UadbRBjhxDz0zr4KIet6xC4EgA3SnXQAYVyj6WSadhn ak2Yvg/eM0ri1GdxuhWJF1yULsyb4mi6NKf0bL4aQtY9V1kZhziOJZ+Et9xS4/yGE6to lvBr6aKsZP4Gpt2QfnFvQPuX0e4UZqgHSMcQ+jId3lAq2RPCp3xZj8roNDYq96YOYhYg 1Kp1AD1c+xJpqwpqhVG2xd0kO1iqpgOY9lK5QEVKQXPodw+5acqry5UDgNOJ3UPG4w0t CAO6bI+6ecYqgB+3c7fKaN9LHvrj9h582RkpDlf1mn0TgMBOiToZu7aKzZIZS2DDakKB F7kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682351291; x=1684943291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cw8koMDtUGDC16LZZb9ieaFLAsAaS9LlPNXf4CJXv08=; b=OaITD697EbGKh89r6e4ZdLakGjn7MYo9XmYA5+ST4XiRjCGO6NfiOvcVMqN8I8hX9D WOdtPVoMpj58Ea9wrjmkPLTtFGHHr6jPA0C8FyjZv9OyyADT8+HW9yyKCsg9rYEqMA+u Fo8AvZLFOC9XJS3BR+e6TrWaRGhnAtZi9MeLzUqo47SLtckObqeGNiM8z7mZcNOBChz3 tKk8XPrANr6arp9Nkf6isi5ZYYeuClaiDigyrJwbIq6kZuk/P6I4UlaaPJy9aWIZ+7rn E3jy1KAr5fjamqpfradHWfhpLPng0X3bcFj8aMVs1R79B7WtXkNCvl3Qm2JoUfkQ1L4v BVNg== X-Gm-Message-State: AAQBX9eJYjLPG/HLHJcnALdzdYfC7mozFO0joRIAPwv/t2WFV4X4+vVV jUS7rKpAQX32tD5uRkwC6toV66qbpl0= X-Google-Smtp-Source: AKy350ZMHRZ0IYrK2hvLxm3okRUq0xdTz2HB7EVTqGrK17jxTZF9AYqxu9hDmCZ3wQz4vR/E1GM7PQ== X-Received: by 2002:a05:600c:82c8:b0:3f1:7332:40d9 with SMTP id eo8-20020a05600c82c800b003f1733240d9mr10936005wmb.0.1682351291120; Mon, 24 Apr 2023 08:48:11 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id v7-20020a5d4a47000000b002fe065da369sm10915161wrs.69.2023.04.24.08.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 08:48:10 -0700 (PDT) From: Simon Tournier Date: Mon, 24 Apr 2023 17:48:01 +0200 Message-Id: <20230424154801.1539772-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32a.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, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682351358; a=rsa-sha256; cv=none; b=e1zY+gdOkaYl9IfcckqYP7r7IYJxFVtlOYzZksLE3X5G/qvjPckjvXBPzlp27UONAQJtz5 BPdNMICGgT/tdZUudaHAA6ATY6j4L5SgFQkn9Xdn1IzA76sT131MYEf4J2oWnKx6k5mX16 MJh1VSEpa4nLMgUreHKNaUhZ2WHSMg2oG4oXmmUs5AEZHYKPaWz+O6R7+YqhU1B37P1NYM LVMyoQmIoDvRB+Ju8xqu6sAo+SdMnl35b7CbbBYAKrVj1pgNCt9Icf4EWaNdztX+qR6qcI IR0I+i4dv3nadUgFpb1JPXNsAMY3DaG3+fzAuirmOvQfN76DgY/kHidvWGVFbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="f+omkID/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682351358; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cw8koMDtUGDC16LZZb9ieaFLAsAaS9LlPNXf4CJXv08=; b=GJZ65wO3tfPYtE+B0Au3RLxa6pXmfNVkymri4XyeDn205fjxzwqjanpGlf/UaiHOxT7rLA 81eLPFFX8MLgpDGXgjgr8n7T6tcljI5yLYAKqQ3adZ044QwkToldAToLMNkqJGGJjdAE9j 07p1XeT51qLC8BXvgjIWAvZ0uRMSx7oMDW+EwetZqVD6zTw1HefSltdf/PkEdk4G1MWCOT t6OO4UVBHGYuAsC2NxaNxmIh1Ho4Cu9TA5z2tRSMr8gnKfwpVNB9HYTjZ8vBIe7UIohK1w b4yCVf8A599x6XtcXJfyWk2z45Hp8Yj7ania+tvGUyc60Q3bcv3doEriZCd+KQ== X-Migadu-Spam-Score: -1.61 X-Spam-Score: -1.61 X-Migadu-Queue-Id: 70D4D1A930 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="f+omkID/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: 8SJVMtTETt+b Hi, Consider, --8<---------------cut here---------------start------------->8--- $ guix import crate non-existent guix import: error: failed to download meta-data for package 'non-existent' --8<---------------cut here---------------end--------------->8--- and then, --8<---------------cut here---------------start------------->8--- $ guix import crate non-existent -r Backtrace: 5 (primitive-load "/home/simon/.config/guix/current/bin/guix") In guix/ui.scm: 2300:7 4 (run-guix . _) 2263:10 3 (run-guix-command _ . _) In guix/scripts/import.scm: 89:11 2 (guix-import . _) In guix/import/utils.scm: 638:27 1 (recursive-import "non-existent" #:repo->guix-package _ #:guix-name _ #:version _ . _) 630:33 0 (lookup-node "non-existent" #f) guix/import/utils.scm:630:33: In procedure lookup-node: Wrong number of values returned to continuation (expected 2) --8<---------------cut here---------------end--------------->8--- as reported by #63030 [1]. This patch set fixes that. Note that ’guile-semver’ is already part of ’self’ but not part of ’guix’, therefore “guix shell -D guix” does not provide the necessary guile-semver for testing with ./pre-inst-env. 1: https://issues.guix.gnu.org/issue/63020 Simon Tournier (3): guix: import: crate: Fix incorrect returned values. scripts: import: crate: Handle non-existent package. gnu: guix: Add guile-semver. gnu/packages/package-management.scm | 1 + guix/import/crate.scm | 54 +++++++++++++++-------------- guix/scripts/import/crate.scm | 20 ++++++----- 3 files changed, 40 insertions(+), 35 deletions(-) base-commit: 9350347dabd0f25f89fd2a703a250b20872ad911 -- 2.38.1