fix(badge/downloads): fix issues with total download counts

Excluded patterns had a bug where they basically did not work. This
means total downloads were inflated by also counting downloads for all
sha256 files.

Also the first 1000 limit when listing repository releases seems to no
loner be a thing, so we can iterate over all pages.

And finally, implement a caching mechanism so we can keep counting
releases in case they are removed, or the first 1000 releases limit is
enabled again in GitHub's API.
This commit is contained in:
2023-11-24 20:32:35 +00:00
parent 644807b703
commit cc2e1a8729
3 changed files with 189 additions and 26 deletions

2
go.mod
View File

@@ -1,6 +1,6 @@
module emacs-builds-meta
go 1.20
go 1.21
require (
github.com/dustin/go-humanize v1.0.1