From 43eca95ce4a8d3ba7acb377fa0760cd62378a4f8 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Mon, 7 Nov 2022 23:12:27 +0900 Subject: [PATCH] reset require-utils/github location --- Library/Homebrew/download_strategy.rb | 2 +- Library/Homebrew/utils/github/api.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 7a0fb1d3ce..c10858a353 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -12,6 +12,7 @@ require "mechanize/version" require "mechanize/http/content_disposition_parser" require "utils/curl" +require "utils/github" require "github_packages" @@ -1070,7 +1071,6 @@ class GitHubGitDownloadStrategy < GitDownloadStrategy end def commit_outdated?(commit) - require "utils/github" @last_commit ||= GitHub.last_commit(@user, @repo, @ref) if @last_commit return true unless commit diff --git a/Library/Homebrew/utils/github/api.rb b/Library/Homebrew/utils/github/api.rb index b802a4af24..86d1cdc2c7 100644 --- a/Library/Homebrew/utils/github/api.rb +++ b/Library/Homebrew/utils/github/api.rb @@ -3,6 +3,7 @@ require "tempfile" require "utils/shell" +require "utils/formatter" module GitHub API_URL = "https://api.github.com"