Hi all,
I'm kind of a XQuery noob, but I'm guilty of the creation of a little
BaseX module, Heimdall (10.5281/zenodo.10638084
<https://zenodo.org/records/10638084>).
It's automatically built, unit tested and documented using GitLab CI.
All build results, including the .xar file, are hosted using GitLab Pages.
Thus, the module .xar archive is available here :
|https://datasphere.gitpages.huma-num.fr/heimdall/xquery/heimdall.xar|
<https://datasphere.gitpages.huma-num.fr/heimdall/xquery/heimdall.xar>.
As you see, all this is hosted in Huma-Num's self-hosted GitLab instance
(Huma-Num is a french research infrastructure).
However, this mail is /not/ (just) a shameless plug.
My issue is that I cannot install my .xar directly with |REPO INSTALL| :
1. I cannot install it with the CLI:
basex -c"<repo-install
path='https://datasphere.gitpages.huma-num.fr/heimdall/xquery/heimdall.xar'/>"
[repo:not-found] Package
'https://datasphere.gitpages.huma-num.fr/heimdall/xquery/heimdall.xar'
not found.
Things are perfectly fine with for example the functx package :
|basex -c"<repo-install
path='https://files.basex.org/modules/expath/functx-1.0.xar'/>"|
2. For gigs, I tried to change the protocol from HTTPS to HTTP, and
here is the error that I get :
basex -c"<repo-install
path='http://datasphere.gitpages.huma-num.fr/heimdall/xquery/heimdall.xar'/>"
[repo:parse] heimdall.xar: Resource "expath-pkg.xml" not found..
So, maybe there is a problem with my expath-pkg.xml file ?
I didn't find any -but, as I said, I'm no pro. If needed, here is
the file that is wrapped in the .xar :
https://gitlab.huma-num.fr/datasphere/heimdall/xquery/-/raw/main/expath-pkg.xml?ref_type=heads
<https://gitlab.huma-num.fr/datasphere/heimdall/xquery/-/raw/main/expath-pkg.xml?ref_type=heads>
3. However, when I download my .xar file from the URL, and then REPO
INSTALL it using the local path, stuff works fine :
wget --no-check-certificate
https://datasphere.gitpages.huma-num.fr/heimdall/xquery/heimdall.xar
basex -c"<repo-install path='./heimdall.xar'/>"
basex -c"<repo-list />"
Name Version Type Path
---------------------------------------------------------------------------
http://heimdall.huma-num.fr 2.1 EXPath
http-heimdall.huma-num.fr-2.1
1 package(s).
So I suppose the problem /might/ not be within the .xar itself, but the
way it is hosted ?
Maybe REPO INSTALL doesn't like my disturbing lack of SSL certificate ?
I tried to search for some clue, but didn't find any clue in the
documentation <https://docs.basex.org/wiki/Repository>. Maybe I'm blind,
maybe that's not the problem at all.
It's not exactly a blocking issue, but my noobiness regarding the basex
ecosystem (and xquery in general) prevents me to understanding what
happens, my README contains false info, and I'm not at ease with that.
If someone had any intel, I'd be thankful.
If needed, here is the repository :
https://gitlab.huma-num.fr/datasphere/heimdall/xquery/
<https://gitlab.huma-num.fr/datasphere/heimdall/xquery/>
And here is the corresponding issue (in French, sorry) :
https://gitlab.huma-num.fr/datasphere/heimdall/xquery/-/issues/1
<https://gitlab.huma-num.fr/datasphere/heimdall/xquery/-/issues/1>
Have a nice day, sunshine, flowers and all,
Régis