Re:The GMP library's repository is under attack by a single ...
by teraflop on Sunday June 18, 2023 @11:11AM
(#36380982)
In this case, it's a foreign Mercurial repository, not Git.
And remember that users' builds can contain arbitrary custom shell scripts that perform "git clone" or "hg clone" commands. It could be very, very difficult for Github to build an automated system that meddles with the behavior of those scripts to introduce caching, while guaranteeing not to break anything.
Re:The GMP library's repository is under attack by a single ...
by coder543 on Sunday June 18, 2023 @11:09AM
(#36380966)
FWIW, it’s not a git repo, it’s a mercurial repo.
Re:The GMP library's repository is under attack by a single ...
by capitainenemo on Sunday June 18, 2023 @11:38AM
(#36381217)
And even if it was a git repo, seems this would still be a problem if everything wasn't on github. I guess the solution is to put all code on github...
Re:The GMP library's repository is under attack by a single ...
by capitainenemo on Monday June 19, 2023 @08:30PM
(#36398221)
BTW, for anyone reading this later, I asked some mercurial folks and putting an http cache in front of clones does indeed work just fine, although using the repo bundles is more performant (but might not be something you could ask folks to do).
Given this repo seems fairly low activity (last commit 7 months ago) I doubt there'd be much of a problem with caching reads.
Although given how they are using this repo, they'd probably be better off with a shallow clone, or a subversion proxy, or a snapshot tarball...likely just are
People already trust GH CI enough to run their code, so why not trust their cache as well?