bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57801: 'inferior-with-channels' is eager, making it hard to use in c


From: Maxime Devos
Subject: bug#57801: 'inferior-with-channels' is eager, making it hard to use in channels
Date: Thu, 15 Sep 2022 17:46:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0



On 14-09-2022 19:18, Lukasz Olszewski wrote:
Additionally this fails even when used like this:

(define inferior
   (mlambda ()
     (inferior-for-channels channels)))

This makes it lazy (not eager).

(lookup-inferior-packages (inferior) "somepackage")

You are running (inferior) directly after defining the lazy thing, making it effectively _eager_ (not lazy) again.

Instead of doing this on the top-level, move the lookup-inferior-packages to inside the 'inputs' or 'native-inputs', to _keep_ it lazy.

Greetings,
Maxime.

Attachment: OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]