all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Csepp <raingloom@riseup.net>, jgart <jgart@dismail.de>
Cc: guix-devel@gnu.org
Subject: Re: crate importer throws
Date: Sat, 15 Oct 2022 13:18:10 +0200	[thread overview]
Message-ID: <8a25d077-36c8-bac3-927d-539ce1a429dc@telenet.be> (raw)
In-Reply-To: <87mta0g0mv.fsf@riseup.net>


[-- Attachment #1.1.1: Type: text/plain, Size: 726 bytes --]



On 12-10-2022 23:51, Csepp wrote:
> And yes, the error message could be clearer,
> although I'm not sure where that should be fixed.

How about in the Guix code that uses the semver stuff?

> Guile doesn't know
> what packages correspond to what modules and it should probably stay
> that way.

It doesn't need to know, e.g. Guix could do

(define-module (whatever) #:autoload (bar) (foo))

(define (foo-if-available)
   (catch 'unbound-variable
     (lambda () foo)
     (lambda _ #false)))

[...]

(define (stuff)
   (define foo (foo-if-available))
   (unless foo
     (error "To use \"guix import crate\", you need to install 
guile-semver"))
   [... use foo ...])

Greetings,
Maxime.



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  reply	other threads:[~2022-10-15 11:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 21:39 crate importer throws jgart
2022-10-12  9:09 ` Csepp
2022-10-12 12:24 ` Maxime Devos
2022-10-12 15:50   ` jgart
2022-10-12 21:51     ` Csepp
2022-10-15 11:18       ` Maxime Devos [this message]
2022-10-13  8:47     ` Maxime Devos
2022-10-14 23:35       ` Csepp
2022-10-15 11:10         ` Maxime Devos
2022-10-15 12:58           ` Csepp
2022-10-19 19:37             ` Efraim Flashner
2022-10-20 12:56               ` Csepp

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=8a25d077-36c8-bac3-927d-539ce1a429dc@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guix-devel@gnu.org \
    --cc=jgart@dismail.de \
    --cc=raingloom@riseup.net \
    /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.