Improvement: Make guix import crate easier to use

  • Open
  • quality assurance status badge
Details
One participant
  • Benjamin Cherry
Owner
unassigned
Submitted by
Benjamin Cherry
Severity
normal
B
B
Benjamin Cherry wrote on 28 Jan 2023 01:36
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
DF8iJF62hbEhY5usBP27DcVuEnSscD-Q-vT1-dtAPTzc3pFTW-FWJmkXxEI9ePcGNXH_1-vSFCS--N-l9TDyGcehWKr-PVOyEx0dko8qcQU=@devcarbon.com
I very happily discovered guix import after trying to write a package def for a rust crate, but ran into this:
;;; Failed to autoload string->semver-range in (semver ranges):
;;; no code for module (semver ranges)
<<backtrace>>
guix/import/crate.scm:260:26: In procedure find-crate-version:error: string->semver-range: unbound variable

Turns out it's because guix import has a soft dep on guile-semver, but intentionally leaves it out since most users won't need it. (See: http://logs.guix.gnu.org/guix/2023-01-28.log#005327)
The dependency is small: 0.4MB. Could we either add it as a hard dep, or at least document at https://guix.gnu.org/manual/en/html_node/Invoking-guix-import.htmlso it is easier to discover how to use guix import crate?

Probably same sort of thing for Guile-Lib for the go importer.

Thanks!

Best Regards,
Benjamin Cherry
--
devcarbon - LLC, Owner
[devcarbon.com](https://devcarbon.com/)
[image]
Attachment: file
Attachment: image
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 61114@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 61114
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch