fix(download): don't use GitHub API to get tarball URL

The API tarball endpoint is subject to API rate limits, while the
non-API tarball endpoint is not. This should reduce the risk of rate
limit errors for people who don't have a GITHUB_TOKEN environment
variable set.
This commit is contained in:
2021-06-20 17:49:10 +01:00
parent c55bf68e61
commit 707bc9e0d1

View File

@@ -72,7 +72,7 @@ class Build
include Output
EMACS_MIRROR_REPO = 'emacs-mirror/emacs'
DOWNLOAD_URL = 'https://api.github.com/repos/emacs-mirror/emacs/tarball/%s'
DOWNLOAD_URL = 'https://github.com/emacs-mirror/emacs/tarball/%s'
attr_reader :root_dir
attr_reader :source_dir