[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: crate importer throws
From: |
Maxime Devos |
Subject: |
Re: crate importer throws |
Date: |
Sat, 15 Oct 2022 13:18:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
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.
OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
- crate importer throws, jgart, 2022/10/11
- Re: crate importer throws, Csepp, 2022/10/12
- Re: crate importer throws, Maxime Devos, 2022/10/12
- Re: crate importer throws, jgart, 2022/10/12
- Re: crate importer throws, Maxime Devos, 2022/10/13
- Re: crate importer throws, Csepp, 2022/10/14
- Re: crate importer throws, Maxime Devos, 2022/10/15
- Re: crate importer throws, Csepp, 2022/10/15
- Re: crate importer throws, Efraim Flashner, 2022/10/19
- Re: crate importer throws, Csepp, 2022/10/20