all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mike Delago <michaeldelago98@gmail.com>
To: 57189@debbugs.gnu.org
Subject: bug#57189: guix import crate fails if optional dependency has a missing version
Date: Sat, 13 Aug 2022 17:57:14 -0400	[thread overview]
Message-ID: <cdb4b8b8-5f5b-37d1-493d-f20490dc64fb@gmail.com> (raw)

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@0.68.0 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





                 reply	other threads:[~2022-08-14 22:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cdb4b8b8-5f5b-37d1-493d-f20490dc64fb@gmail.com \
    --to=michaeldelago98@gmail.com \
    --cc=57189@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.