Hi rde community,
Any idea why my channel fails to find the meow module?
I get the following error:
(repl-version 0 1 1)
(exception misc-error (value #f) (value "no code for module ~S") (value ((confetti features meow))) (value #f))
https://git.sr.ht/~whereiseveryone/confetti
I'm completely stumped on why this is.
I'm able to build and use the modules locally but when I push my config to the channel repo and pull it fails with the above error.
It was not able to find the chatgpt module either with the same/similar error when imported into my conf.scm.
Any help is much appreciated.
all best,
jgart
On 2023-07-10 00:50, jgart wrote:
> Hi rde community,>> Any idea why my channel fails to find the meow module?>> I get the following error:>> (repl-version 0 1 1)> (exception misc-error (value #f) (value "no code for module ~S") (value ((confetti features meow))) (value #f))>> https://git.sr.ht/~whereiseveryone/confetti>> I'm completely stumped on why this is. >> I'm able to build and use the modules locally but when I push my> config to the channel repo and pull it fails with the above error.>> It was not able to find the chatgpt module either with the> same/similar error when imported into my conf.scm.>> Any help is much appreciated.>> all best,>> jgart
Provide a command/instruction to reproduce, please.
--
Best regards,
Andrew Tropin
> Provide a command/instruction to reproduce, please.
Hi Andrew,
Add the confetti channel to your channels.scm and do a guix pull.
That will reproduce the error and give you a failing build log similar to the following for inspection:
|builder for `/gnu/store/ij76gfks9z1gn6rci1y7wqp1w3anrhjx-confetti.drv' failed to produce output path `/gnu/store/s0mqamz60r3h0dcharafdrrgqr72m2dz-confetti'
build of /gnu/store/ij76gfks9z1gn6rci1y7wqp1w3anrhjx-confetti.drv failed
View build log at '/var/log/guix/drvs/ij/76gfks9z1gn6rci1y7wqp1w3anrhjx-confetti.drv.gz'.
cannot build derivation `/gnu/store/ii8ccwg5xj6psc94g0rkf985zal2il5r-profile.drv': 1 dependencies couldn't be built
Here's the channel record to reproduce that:
(channel
(name 'confetti)
(url "https://git.sr.ht/~whereiseveryone/confetti")
(branch "s")
(introduction
(make-channel-introduction
"e037ffa3a40bcd7807a97a0415ef588b411277c3"
(openpgp-fingerprint
"3B1D 7F19 E36B B60C 0F5B 2CA9 A52A A2B4 77B6 DD35"))))
The commit that is failing is the following:
0ffa2edede7a1c3d75eb28b4bbdc6e54353ad123
WDYT
On 2023-07-10 06:10, jgart wrote:
>> Provide a command/instruction to reproduce, please.>> Hi Andrew,>> Add the confetti channel to your channels.scm and do a guix pull.>> That will reproduce the error and give you a failing build log similar to the following for inspection:>> |builder for `/gnu/store/ij76gfks9z1gn6rci1y7wqp1w3anrhjx-confetti.drv' failed to produce output path `/gnu/store/s0mqamz60r3h0dcharafdrrgqr72m2dz-confetti'> build of /gnu/store/ij76gfks9z1gn6rci1y7wqp1w3anrhjx-confetti.drv failed> View build log at '/var/log/guix/drvs/ij/76gfks9z1gn6rci1y7wqp1w3anrhjx-confetti.drv.gz'.> cannot build derivation `/gnu/store/ii8ccwg5xj6psc94g0rkf985zal2il5r-profile.drv': 1 dependencies couldn't be built
This is because you have `(directory "confetti")` in your channel
declaration:
https://git.sr.ht/~whereiseveryone/confetti/tree/s/item/.guix-channel#L3
It tries to find confetti/features/meow.scm in confetti/ directory.
Either put confetti/ under src/ and set directory to "src" or
set directory to "." (which I don't recommend).
--
Best regards,
Andrew Tropin
On 2023-07-10 21:27, jgart wrote:
>> set directory to "." (which I don't recommend).>> Hi Andrew, can you explain why you don't recommend "."? I'm not sure> why to avoid it.
Sure. Using "." makes it impossible to have a few subdirectories, which
can be conditionally used (included in the %load-path) for different use
cases, for example "src/" "tests/" "dev/", last two useful for
development, but not need in resulting build/channel or whatever guile
artifact you want to provide.
Also "." will capture some auxiliary files like channels.scm or
something else, which usually is not a desired behaviour as well.
--
Best regards,
Andrew Tropin