bug#58250: [PATCH 1/2] modules: Remove load path prefix from module name.

2022-10-02 Thread itd
* guix/modules.scm (file-name->module-name): Ignore load path prefix when building module name. --- It was mentioned on IRC, that (guix modules)'s file-name->module-name might be function to be used by the JSON importer (and fixed if needed). This patch attempts to implement the idea from the bug

bug#58250: [PATCH 2/2] import: print: Use file-name->module-name.

2022-10-02 Thread itd
* guix/import/print.scm (package->code)[package-module-name]: Use file-name->module-name to build the package module name. --- This patch updates the JSON importer to use (guix modules)'s file-name->module-name to determine the module name. guix/import/print.scm | 6 ++ 1 file changed, 2 in

bug#58250: guix import json: GUIX_PACKAGE_PATH -- no code for module

2022-10-02 Thread itd
L/ > /tmp/tmp.J3f9qsyDIL$ guix import json myhello.json > > Starting download of /tmp/guix-file.bQ5VSS > From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz... > following redirection to > `https://gnu.askapache.com/hello/hello-2.10.tar.gz'... > …10.tar.gz 709Ki