-
Notifications
You must be signed in to change notification settings - Fork 0
Description
It seems that to clone a repository from GitHub now you always need to set credentials, whatever URL you are using.
So, I'm proposing to replace repositories (that in general are also an overkill) with the master/main branch content, i.e. instead of cloning with Git we will just download the zip content of one branch from GitHub.
E.g. for this repository the corresponding URL is https://github.com/NNPDF/runcards/archive/refs/heads/master.zip
The other option is to use the latest release, e.g. for PineAPPL the URL to the zip of the last release can be found with a request to:
https://api.github.com/repos/n3pdf/pineappl/releases/latest
(the key in the response is actually zipball_url). Once we have the URL, one GET more and we'll have the zip as well (for tarball replace zip with tar in the key.
Which one do you prefer?
master/main: always updated- latest release: more stable
TODO:
- fix version
- replace repositories with tarballs
- Support config files pinecards#127 (comment)
- purge unused (and thus unmaintained) Git related code
- if possible, drop the whole
pygit2dependency, if not used for anything left
- if possible, drop the whole
- download MadGraph from its new source https://github.com/mg5amcnlo/mg5amcnlo (branch
3.4.1, see Download mg5amc using git pinecards#142) - purge Breeze if not any longer used