[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to use guix-for-channels together with -L without errors?
From: |
Tomas Volf |
Subject: |
How to use guix-for-channels together with -L without errors? |
Date: |
Thu, 15 Aug 2024 00:24:17 +0200 |
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.
signature.asc
Description: PGP signature
- How to use guix-for-channels together with -L without errors?,
Tomas Volf <=