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

2022-12-23 Thread Ludovic Courtès
itd skribis: > * 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

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

2022-12-23 Thread Ludovic Courtès
Hi, itd skribis: > * 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

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

2022-10-02 Thread itd
Hi, I'm having an issue with the JSON importer. The following example attempts to illustrate the problem: > $ cd $(mktemp -d) # -> /tmp/tmp.J3f9qsyDIL > /tmp/tmp.J3f9qsyDIL$ cat myhello.json > { > "name": "myhello", > "version": "2.10", > "source": "mirror://gnu/hello/hello-2.10.tar.gz",