From 707bc9e0d13246b7cfb8d27da859a101d4a3c166 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 20 Jun 2021 17:49:10 +0100 Subject: [PATCH] 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. --- build-emacs-for-macos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-emacs-for-macos b/build-emacs-for-macos index 2b81054..2e22fbd 100755 --- a/build-emacs-for-macos +++ b/build-emacs-for-macos @@ -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