GNU bug report logs -
#74633
[PATCH] ui: Search channels for guix extensions
Previous Next
Reported by: Brian Kubisiak <brian <at> kubisiak.com>
Date: Sun, 1 Dec 2024 14:54:01 UTC
Severity: normal
Tags: patch
Merged with 74425
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #40 received at 74633 <at> debbugs.gnu.org (full text, mbox):
Hi,
Brian Kubisiak <brian <at> kubisiak.com> skribis:
>> Once thing I overlooked before is that commands will have to live under
>> /guix/extensions, right?
>>
>> (define (commands)
>> "Return the list of commands, alphabetically sorted."
>> (filter-map source-file-command
>> (append (command-files)
>> (append-map command-files
>> (extension-directories)))))
>>
>> And likewise in ‘run-guix-command’.
>>
>> But now, if a channel provides ‘guix/scripts/foo.scm’, the ‘guix help’
>> command will not show ‘foo’ but the ‘guix foo’ command will effectively
>> work (which wasn’t the case until now).
>>
>> Maybe it’s fine actually, I don’t know, but I thought this is worth
>> mentioning and thinking though.
>
> My intention was to use /guix/extensions since it's the same directory
> structure as existing extensions. I don't have a strong preference
> here, though I think Carlo intended to support /guix/scripts in
> #74425. Maybe it's a good idea to support both?
Yes, it’s probably a good idea to support both. In that case, the only
thing missing here I think is for ‘commands’ to somehow visit
guix/scripts/*.scm coming from channels.
Thanks,
Ludo’.
This bug report was last modified 131 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.