ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: [NTG-context] new module installer and .tar.gz compression
Date: Tue, 9 May 2023 00:33:47 +0200	[thread overview]
Message-ID: <db98921d-c35e-fb05-af0a-7126ffeed580@freedom.nl> (raw)
In-Reply-To: <c70e0833-39be-aebe-09da-6a2145cb0ac0@fiee.net>

On 5/8/2023 8:55 PM, Henning Hraban Ramm via ntg-context wrote:
> Am 08.05.23 um 19:40 schrieb Pablo Rodriguez via ntg-context:
>> On 5/8/23 17:58, Bruce Horrocks via ntg-context wrote:
>>>> On 8 May 2023, at 16:20, Pablo Rodriguez wrote:
>>>> [...]
>>>> Sorry, but I don’t know how to force git urls to be added as zip
>>>> packages in https://modules.contextgarden.net.
>>>
>>> Use 
>>> <https://github.com/ousia/handlecsv/archive/refs/heads/context-suite.zip> as the link to download as a Zip file.
> 
> I thought https://codeberg.org/fiee/context-simpleslides as git URL 
> would have worked for me, but the new script actually installs the 
> outdated simpleslides.zip.
> 
> So I used a link to the release ZIP for a new release:
> https://codeberg.org/fiee/context-simpleslides/archive/2023-04-13.zip
> 
> But the script still only installs the old ZIP.
> 
> Actually, no, it doesn’t install anything, but doesn’t complain:
> 
> """
> ~/lmtx/tex $ mtxrun --script install-modules --install t-simpleslides
> 
> mtx-install-modules | loading entries from file 
> '~/lmtx/tex/texmf-context/tex/context/modules/third/mtx-install-imp-modules.lua'
> mtx-install-modules | loading entries from file 
> '~/lmtx/tex/texmf-context/tex/context/modules/third/mtx-install-imp-tikz.lua'
> mtx-install-modules |
> mtx-install-modules |
> mtx-install-modules | renewing file database
> mtx-install-modules |
> system          | lua | compiling 
> '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/71c82419867f9a0df8a150196c03c86f.lua' into '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/71c82419867f9a0df8a150196c03c86f.lud'
> ...
> system          | lua | dumping 
> '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/dcb651482955ac31eaab7723b70e0184.lua' into '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/dcb651482955ac31eaab7723b70e0184.lud' stripped
> mtx-install-modules |
> mtx-install-modules | installed: t-simpleslides
> mtx-install-modules |
> """
> 
> 
> "mtxrun --script install-modules --install simpleslides" (without "t-") 
> works.
> 
> But either the module scripts should re-pack tgz archives or the 
> installer must learn to handle them.
There is code for unpacking gzip and tar but I don't think we should 
start mixing formats and zip is kind of what we always did.

The modules are in the imp files (mentioned when loaded) but the urls 
are sort of abstract (and resolved in the installer).

I've added an option to directly pass an url but I suppose that is only 
for testing. After all, we expect some quality checks and thats what the 
garden does.

 >mtxrun --script install-modules --install --module 
https://codeberg.org/fiee/context-simpleslides/archive/2023-04-13.zip
win64/bin/lib/luametatex/curl/libcurl.dll'
mtx-install-modules | from 
'https://codeberg.org/fiee/context-simpleslides/archive/2023-04-13.zip'
mtx-install-modules | into 'texmf-modules'
    8 files of   83 done,      25247 bytes, 0.003 seconds
   16 files of   83 done,    3504028 bytes, 0.025 seconds
   24 files of   83 done,    4655619 bytes, 0.039 seconds
....

but as said, it's only for testing (or for modules not yet mentioned in 
the imp file).

Keep in mind that no files are deleted. When all modules are 
consistently packages I can make a 'remove old' feature.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-05-08 22:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-08 15:20 Pablo Rodriguez via ntg-context
2023-05-08 15:58 ` Bruce Horrocks via ntg-context
2023-05-08 17:40   ` Pablo Rodriguez via ntg-context
2023-05-08 18:55     ` Henning Hraban Ramm via ntg-context
2023-05-08 22:33       ` Hans Hagen via ntg-context [this message]
2023-05-08 23:19       ` Hans Hagen via ntg-context
2023-05-09  5:17         ` Henning Hraban Ramm via ntg-context
2023-05-09  6:06           ` Hans Hagen via ntg-context
2023-05-09  7:30         ` Hans van der Meer via ntg-context
2023-05-09  7:43           ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db98921d-c35e-fb05-af0a-7126ffeed580@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).