all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to use guix-for-channels together with -L without errors?
@ 2024-08-14 22:24 Tomas Volf
  2024-08-15 17:14 ` Nils Landt
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Volf @ 2024-08-14 22:24 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

Hi,

I decided to start using guix-for-channels and run into weird issue.
Reproduction is easy:

1. Make a new directory.

2. Make an empty file with .scm extension, for example:

    $ touch foo.scm

3. Try to build guix-for-channels in that directory with `-L .':

    $ guix build -L . -e '((@ (gnu packages package-management) guix-for-channels) (@ (guix channels) %default-channels))'

4. Observe an error in the output:

    Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
    no code for module (foo)

Now, what I do not understand is why this error:

    no code for module (foo)

is there.  I am building guix from %default-channels, why is it even loading
files in the local directory?  And how do I make it stop?  In this case, I could
just drop `-L .', but in real code I need the argument to load modules required
for the system.

Any comments and/or ideas?

Thanks and have a nice day,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2024-08-16  4:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 22:24 How to use guix-for-channels together with -L without errors? Tomas Volf
2024-08-15 17:14 ` Nils Landt
2024-08-15 19:46   ` Tomas Volf
2024-08-16  4:40     ` Nils Landt

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.