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: Wed, 28 Aug 2024 17:36:58 +0500
User-agent: Mozilla Thunderbird

Hello Florian,

pelzflorian (Florian Pelz) wrote:
Still, when would your diff break someone else’s code?
Instead of answering this tough question I decided to make another
patch (see attachment) which is guaranteed not to break another's code:

- The patch adds 'follow-symlinks?' argument  to 'current-source-directory'
  macro and 'absolute-dirname' procedure.
- In case of 'current-source-directory' the argument is optional and defaults
  to #f. Thus new API is backward compatible with the old one.
- In case of 'absolute-dirname' the argument is mandatory, but this procedure
  is internal to (guix utils) module and therefore the modification does not
  change public API. The usage of 'absolute-dirname' inside this module
  (only two occurrences) is corrected accordingly.
- 'local-file' macro from (guix gexp) uses 'current-source-directory' with
  follow-symlinks? argument set to #t.

Regards,
Nigko

Attachment: diff3
Description: Text document


reply via email to

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