GNU bug report logs - #57189
guix import crate fails if optional dependency has a missing version

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Mike Delago <michaeldelago98@HIDDEN>; merged with #58785; dated Sun, 14 Aug 2022 01:09:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Merged 57189 58785. Request was from Abhishek Cherath <abhi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Aug 2022 01:08:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 13 21:08:51 2022
Received: from localhost ([127.0.0.1]:35389 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oN27V-0003fC-C2
	for submit <at> debbugs.gnu.org; Sat, 13 Aug 2022 21:08:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:54600)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michaeldelago98@HIDDEN>) id 1oMz8C-0007VS-Li
 for submit <at> debbugs.gnu.org; Sat, 13 Aug 2022 17:57:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45572)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michaeldelago98@HIDDEN>)
 id 1oMz8C-0001hu-76
 for bug-guix@HIDDEN; Sat, 13 Aug 2022 17:57:20 -0400
Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:36420)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <michaeldelago98@HIDDEN>)
 id 1oMz8A-0000NS-CI
 for bug-guix@HIDDEN; Sat, 13 Aug 2022 17:57:19 -0400
Received: by mail-qk1-x731.google.com with SMTP id n21so3211237qkk.3
 for <bug-guix@HIDDEN>; Sat, 13 Aug 2022 14:57:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:from:to:cc;
 bh=4sgciqBAHsJoXeXgBnQHFdlEmaWRG5H5nA+O9MV4vCU=;
 b=PECS99ubyK7lyfDrLwaxDadaxnj/ic+xkzsjiywx99eRr8D3VR9Dj/+lqn23iZCHSO
 KwR3XW1IFsUizql6Fc7/e0faEro9j2ijEOyHFfwKTnF0x+0hJW1YPZcM9fBHFLgc14jV
 uFj85wHFgnsm3W2DFx4GniHiAztSBW4p+igUlyL1+QFpV89QypVd+iwf0KL5w1IZyI2Q
 1mAbGTnQFHaqwx+itkoDSpe5QyWZVMbcaQBeHxH1uwlpE2iW6cEwKBl+SqtZ8SBGj7H0
 Z48Xjgfo4cS0ra5KkHPYvjOnRH+HSJyO2MxrvcC6XfEuUyk5+YE4MEPz2guQOm9W3MAL
 ctVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc; bh=4sgciqBAHsJoXeXgBnQHFdlEmaWRG5H5nA+O9MV4vCU=;
 b=Ja7mBcAkoMcm2WquraQo6tKMxVQqTYTcBRldLz0W83/y7s1WIy4vj7zraJG4VW6HNf
 rQLSkPUWQb87sZgB6K+O4nA1L+EP6Zb3a5KzcrOY2qU35ssgMO0HjnXfSmKIJf1NZR0p
 GrC8QP+dB43I1QaA6uIC0eZEZmFuJCVShV7cV0YZBibmFb3Z3osuDsmUZWGRzWie2pD5
 JV6PYJtCv3Ynlvsl/8Pq7BjghzDdQt0KNAc5MyYZ6GrSMUS9pW59G8MGpr8pUEgYQtt9
 hQb0dtedJC2Nv/o3MmHWGhifk3Pnexf2cOiwN271GAdl2PkGmDwT9HE55QZAA0P89CtY
 zW0A==
X-Gm-Message-State: ACgBeo04m1fdlY9Ynb4PZBKpcY/J4fBxWr7cvL40+Eu5EQkYjJkImNvL
 RfjVJvE2SuOoncBs+2cSvvtjfSjkuhVJ1A==
X-Google-Smtp-Source: AA6agR7BGWldiqPRKkEGyR9cJrUQj7p6Gckv4YOqn8VGsdYntIX/QF0gYwntUppuGr0WZ79+EEzOvg==
X-Received: by 2002:a05:620a:2493:b0:6b9:7a40:526b with SMTP id
 i19-20020a05620a249300b006b97a40526bmr7195801qkn.750.1660427836270; 
 Sat, 13 Aug 2022 14:57:16 -0700 (PDT)
Received: from [192.168.1.251] (69-149-60-121.lightspeed.dybhfl.sbcglobal.net.
 [69.149.60.121]) by smtp.gmail.com with ESMTPSA id
 t3-20020a05620a450300b006b5df4d2c81sm5360478qkp.94.2022.08.13.14.57.15
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 13 Aug 2022 14:57:15 -0700 (PDT)
Message-ID: <cdb4b8b8-5f5b-37d1-493d-f20490dc64fb@HIDDEN>
Date: Sat, 13 Aug 2022 17:57:14 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.12.0
Content-Language: en-US
To: bug-guix@HIDDEN
From: Mike Delago <michaeldelago98@HIDDEN>
Subject: guix import crate fails if optional dependency has a missing version
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::731;
 envelope-from=michaeldelago98@HIDDEN; helo=mail-qk1-x731.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 13 Aug 2022 21:08:48 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Version: 9e4632081ff31bf0d1715edd66f514614c6dc4bb

I'm working to define a package for Zellij, a terminal multiplexer 
similar to GNU screen or tmux.

It appears that some of the dependencies aren't within the standard Guix 
channel, so I'm doing a recursive import (with `guix import crate zellij 
--recursive >> foo.scm`)

Unfortunately, this is failing. Attempting again via 
`(crate-recursive-import "zellij" #:version "0.31.1")` in the guix repl 
leads to this backtrace:

following redirection to 
`https://static.crates.io/crates/wasmer-types/wasmer-types-1.0.2.crate'...
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting 
struct): #f

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
;; lines removed for brevity
In guix/import/crate.scm:
    300:28 17 (crate->guix-package "cranelift-codegen" #:version _ # _ …)
    292:10 16 (sort-map-dependencies _)
In srfi/srfi-1.scm:
    ;;  lines removed for brevity
    586:29  3 (map1 (#<<crate-dependency> id: "hashbrown" kind: no…> …))
    586:17  2 (map1 (#<<crate-dependency> id: "peepmatic" kind: no…> …))
In guix/import/crate.scm:
    283:18  1 (dependency-name+version _)
In ice-9/boot-9.scm:
   1685:16  0 (raise-exception _ #:continuable? _)

It appears that the crate importer is failing when attempting to get a 
package that doesn't exist. In this case, it's "peepmatic", version 
0.68.0.  On crates.io, the peepmatic@HIDDEN returns a 404.

I'd like if the crate importer for guix should more cleanly handle this, 
or concisely describe the issue.


Thanks,

Mike Delago





Acknowledgement sent to Mike Delago <michaeldelago98@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#57189; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 28 Oct 2022 22:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.