unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57801: 'inferior-with-channels' is eager, making it hard to use in channels
@ 2022-09-14 12:28 Maxime Devos
  2022-09-14 17:18 ` Lukasz Olszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Devos @ 2022-09-14 12:28 UTC (permalink / raw)
  To: 57801


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

As experienced by Luks6655, you can't do

(define inferior (inferior-with-channels CHANNELS))

on the top-level of a channel module.  I think the issue is that 
inferior-with-channels is eager (not lazy), so it cannot be used in a 
channel on the top-level, as builds (including channel builds) are 
isolated from the network and have limited access to the file system.

If it would be made lazy, then

(define inferior (inferior-with-channels CHANNELS))
(define-public p
   (package
     [...]
     (inputs (list (lookup-inferior-package inferior "hello")))))

should, in theory, work (unverified).

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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-15 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 12:28 bug#57801: 'inferior-with-channels' is eager, making it hard to use in channels Maxime Devos
2022-09-14 17:18 ` Lukasz Olszewski
2022-09-15 15:46   ` Maxime Devos

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).