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:
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/mainbranch 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, oneGETmore and we'll have the zip as well (for tarball replacezipwithtarin the key.Which one do you prefer?
master/main: always updatedTODO:
pygit2dependency, if not used for anything left3.4.1, see Download mg5amc using git pinecards#142)