diff --git a/Library/Homebrew/api.rb b/Library/Homebrew/api.rb index 3e293d5768..4caf17e825 100644 --- a/Library/Homebrew/api.rb +++ b/Library/Homebrew/api.rb @@ -40,6 +40,9 @@ module Homebrew } def self.fetch_json_api_file(endpoint, target: HOMEBREW_CACHE_API/endpoint, stale_seconds: Homebrew::EnvConfig.api_auto_update_secs.to_i) + # Lazy-load dependency. + require "development_tools" + retry_count = 0 url = "#{Homebrew::EnvConfig.api_domain}/#{endpoint}" default_url = "#{HOMEBREW_API_DEFAULT_DOMAIN}/#{endpoint}" diff --git a/Library/Homebrew/downloadable.rb b/Library/Homebrew/downloadable.rb index 8c03630621..5a1d4dbd02 100644 --- a/Library/Homebrew/downloadable.rb +++ b/Library/Homebrew/downloadable.rb @@ -3,6 +3,7 @@ require "url" require "checksum" +require "download_strategy" class Downloadable include Context diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 941c351e09..97e58ceb99 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -1,6 +1,7 @@ # typed: true # frozen_string_literal: true +require "api" require "commands" require "settings"