zimoun <zimon.touto...@gmail.com> writes:
> In the mood for documenting the recent GUIX_EXTENSIONS_PATH, I am > missing something because I hit an error. It’s not your fault. It’s hard to do this without documentation. > --8<---------------cut here---------------start------------->8--- > $ cat /tmp/foo/bar.scm > (define-module (guix extensions bar) > #:use-module (guix scripts)) This right here is the problem. The module name and the file name do not match. The file must be $GUIX_EXTENSIONS_PATH/guix/extensions/bar.scm and provide the module (guix extensions bar). > $ export GUIX_EXTENSIONS_PATH=/tmp/foo > > $ guix --help > Usage: guix COMMAND ARGS... > Run COMMAND with ARGS. > > COMMAND must be one of the sub-commands listed below: > Backtrace: > 4 (primitive-load "/home/simon/.config/guix/current/bin/guix") > In ice-9/boot-9.scm: > 1731:15 3 (with-exception-handler #<procedure 7f13f2064b70 at > ice-9/boot-9.scm:1815:7 (exn)> _ # _ …) > In guix/ui.scm: > 2105:20 2 (show-guix-help) > In srfi/srfi-1.scm: > 691:23 1 (filter-map #<procedure source-file-command (file)> _ . _) > In guix/ui.scm: > 2023:2 0 (source-file-command _) > > guix/ui.scm:2023:2: In procedure source-file-command: > Throw to key `match-error' with args `("match" "no matching pattern" ("tmp" > "foo" "bar.scm"))'. But it still shouldn’t throw an error like that. I’ll fix it. Sorry! -- Ricardo