install-modules script and git URLs
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
Hi Hraban and Taco, the install-modules script doesn’t allow .tar.gz as compression format to install modules. .tar.gz seems to be the compression format offered for modules that are uploaded using a git URL. Hraban explained in August that thee server could be configured to get .zip compression for modules in git checkout. Sorry, I know that you are both very busy, but could it be this issue fixed? Using git to upload module versions is way more easy than uploading .zip files. Many thanks for your help to both, Pablo
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 19.12.23 um 18:29 schrieb Pablo Rodriguez via ntg-context:
Hi Hraban and Taco,
the install-modules script doesn’t allow .tar.gz as compression format to install modules.
.tar.gz seems to be the compression format offered for modules that are uploaded using a git URL.
Hraban explained in August that the server could be configured to get .zip compression for modules in git checkout.
Sorry, I know that you are both very busy, but could it be this issue fixed?
I looked at the code and don’t understand enough of it… (it’s old Perl CGI code). There are more changes that I’d like to do (e.g. add more licenses – needs db access).
Using git to upload module versions is way more easy than uploading .zip files.
I agree. Hraban
![](https://secure.gravatar.com/avatar/e0f8d84b235b67d60a3c7fd0e326db8d.jpg?s=120&d=mm&r=g)
On 19 Dec 2023, at 17:48, Henning Hraban Ramm
wrote: Am 19.12.23 um 18:29 schrieb Pablo Rodriguez via ntg-context:
Hi Hraban and Taco, the install-modules script doesn’t allow .tar.gz as compression format to install modules. .tar.gz seems to be the compression format offered for modules that are uploaded using a git URL. Hraban explained in August that the server could be configured to get .zip compression for modules in git checkout. Sorry, I know that you are both very busy, but could it be this issue fixed?
I looked at the code and don’t understand enough of it… (it’s old Perl CGI code). There are more changes that I’d like to do (e.g. add more licenses – needs db access).
Using git to upload module versions is way more easy than uploading .zip files.
I agree.
The Github API for retrieving a 'zipball' is documented here https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#downloa... The explanation of the allowed options is a little terse but, basically, a URL of the form https://api.github.com/repos/{OWNER}/{REPO}/zipball https://api.github.com/repos/%7BOWNER%7D/%7BREPO%7D/zipball should be sufficient to result in a zipped download of the repository named {REPO} owned by {OWNER}. You can test manually from a Unix/Linux command line using the command: $ curl -L https://api.github.com/repos/{OWNER}/{REPO}/zipball https://api.github.com/repos/%7BOWNER%7D/%7BREPO%7D/zipball > results.zip If the existing Perl CGI uses a curl command like this then it may simply be enough for Pablo to specify a suitably formatted Github URL. Note that the -L is necessary because the Github API generates a temporary, time-limited URL and redirects to it by returning a 302 response code. Regards, — Bruce Horrocks Hampshire, UK
![](https://secure.gravatar.com/avatar/e0f8d84b235b67d60a3c7fd0e326db8d.jpg?s=120&d=mm&r=g)
Firstly, apologies for any confusion: Apple Mail has decided it knows best and has doubled-up the URLs containing { placeholders }. Since the URLs contain placeholders then they can't be used directly anyway but you knew that. :-) Secondly, on re-reading, it comes over as instructions for Hraban when it was meant to be a suggestion to Pablo to try the alternate form of the Github repository URL first.
On 19 Dec 2023, at 21:47, Bruce Horrocks
wrote: On 19 Dec 2023, at 17:48, Henning Hraban Ramm
wrote: Am 19.12.23 um 18:29 schrieb Pablo Rodriguez via ntg-context:
Hi Hraban and Taco, the install-modules script doesn’t allow .tar.gz as compression format to install modules. .tar.gz seems to be the compression format offered for modules that are uploaded using a git URL. Hraban explained in August that the server could be configured to get .zip compression for modules in git checkout. Sorry, I know that you are both very busy, but could it be this issue fixed?
I looked at the code and don’t understand enough of it… (it’s old Perl CGI code). There are more changes that I’d like to do (e.g. add more licenses – needs db access).
Using git to upload module versions is way more easy than uploading .zip files.
I agree.
The Github API for retrieving a 'zipball' is documented here https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#downloa...
The explanation of the allowed options is a little terse but, basically, a URL of the form
https://api.github.com/repos/{OWNER}/{REPO}/zipballhttps://api.github.com/repos/%7BOWNER%7D/%7BREPO%7D/zipball
should be sufficient to result in a zipped download of the repository named {REPO} owned by {OWNER}.
You can test manually from a Unix/Linux command line using the command:
$ curl -L https://api.github.com/repos/{OWNER}/{REPO}/zipballhttps://api.github.com/repos/%7BOWNER%7D/%7BREPO%7D/zipball > results.zip
If the existing Perl CGI uses a curl command like this then it may simply be enough for Pablo to specify a suitably formatted Github URL.
Note that the -L is necessary because the Github API generates a temporary, time-limited URL and redirects to it by returning a 302 response code.
Regards, — Bruce Horrocks Hampshire, UK
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
— Bruce Horrocks Hampshire, UK
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Just so that everyone knows: Taco has fixed the modules management scripts, so that git checkouts and zip uploads work now. Hraban
participants (3)
-
Bruce Horrocks
-
Henning Hraban Ramm
-
Pablo Rodriguez