guix-devel
[Top][All Lists]
Advanced

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

Re: Cookbook recipe from "The Repository as a Channel" section does not


From: Nigko Yerden
Subject: Re: Cookbook recipe from "The Repository as a Channel" section does not work for Guix with properly configured GUILE_LOAD_PATH
Date: Fri, 23 Aug 2024 10:07:49 +0500
User-agent: Mozilla Thunderbird

pelzflorian (Florian Pelz) wrote:
But then again, the current current-source-directory
already does follow symlinks in nearly all cases, even in configuration
files
Don't see it neither in the code nor in our examples. 'syntax-source' doesn't
do this. The second branch of 'if' in 'absolute-dirname' bringing in
'canonicalize-path' is never executed in the examples (remember, the original
patch didn't work because of this).

but actually I do not know why `local-file', when
calling `absolute-dirname', takes this case of `if'.
Only the first branch of 'if' is executed in all practical cases I can imagine.

Documenting this work-around is not enough; we would have to also
document the rationale that local-file is weird and inconsistent,
Why do you think we should do this in this section of cookbook? Isn't it a 
separate
topic?

because current-source-directory is weird and inconsistent
It isn't. It simply does not follow symlinks by design.

Why does current-source-directory use syntax-source?
What can it use instead? Related syntaxes such as
'current-source-location' and 'current-filename' are all using
'syntax-source' under the hood.

Regards,
Nigko



reply via email to

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