That pack file is wrong.
> Hence I must conclude that the wildcard is limited to the whole file name
> without extension, but at least the folder path is flexible...!
I explained the process:
if is_wildcard(file-name(URL)
fetch url after deleting the filename
parse HTML
find links that match the wildcard
find most recent version (a new URL)
find package name from URL
download and install
find package is basically
if is_github_url(URL)
package name is last directory segment
else
get file name part of URL
drop extension and version
> I gather the way it's been implemented simply reflects those projects
> where a SWI pack structure is all that there is: of course it does not
> scale,
I think you could say exactly the same for Python, R, node, etc. Package
managers such as Debian apt or BSD port also do more or less the same
thing, only OS specific rather than language specific.
> but if at least the docs were more precise, one would not have to waste
> so many days.
That of course is always a fair point. There is certainly a lot to wish
for wrt the package manager. The concept is good. Ideally we had a
widely adopted cross-OS cross-language package manager. I think it is
possible to build such a beast (using adapters for the OS and language),
but I'm not aware of one. As it stands, every language builds its own
and typically in the language itself to reduce external dependencies and
improve cross-OS portability. The only good news about that is that it
tests and improves the OS interaction. The bad news is that writing a
complete package manager with a sensible interface is a lot of work.
I wrote this one as a proof of concept, hoping it would evolve. Some
of that happened thanks to various users.
> I understand SWI is a free and open and all, but really so too many features
> are just concocted there based on a single in-house use case... There,
> I said it. Thanks anyway.
In part, this is certainly true. One got to start somewhere though. Much
of the stuff gets improved as it is used more widely and people both
raise issues and start extending facilities to suit their needs.
Cheers --- Jan