From fb73733bff0e232a1a7cc7a3311ac0a59fd0448a Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 6 Oct 2022 19:04:13 +0200 Subject: feat(github): use proxy API for fetching latest release (#521) This uses a globally distributed, edge-cached, proxy [1] for a very common touchpoint with the GitHub API. This is already done for fetching the latest tag, now expanding to latest release as well. [1]: https://github.com/williamboman/github-api-proxy --- lua/mason-core/managers/github/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/mason-core/managers/github/init.lua') diff --git a/lua/mason-core/managers/github/init.lua b/lua/mason-core/managers/github/init.lua index 5746f1cf..7cdd494c 100644 --- a/lua/mason-core/managers/github/init.lua +++ b/lua/mason-core/managers/github/init.lua @@ -165,7 +165,7 @@ function M.check_outdated_primary_package_release(receipt) if source.type ~= "github_release" and source.type ~= "github_release_file" then return Result.failure "Receipt does not have a primary source of type (github_release|github_release_file)." end - return client.fetch_latest_release(source.repo, { tag_name_pattern = source.tag_name_pattern }):map_catching( + return client.fetch_latest_release(source.repo):map_catching( ---@param latest_release GitHubRelease function(latest_release) if source.release ~= latest_release.tag_name then -- cgit v1.2.3-70-g09d2