Merge pull request #19770 from Homebrew/global-no-fileutils

global: mark `extend FileUtils` for dropping
This commit is contained in:
Bo Anderson 2025-04-16 16:25:39 +00:00 committed by GitHub
commit f530863a29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,11 @@ HOMEBREW_PULL_OR_COMMIT_URL_REGEX =
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})]
HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/
# odeprecated: remove this in next major/minor release
require "fileutils"
module Homebrew
# odeprecated: remove this in next major/minor release
extend FileUtils
DEFAULT_PREFIX = T.let(ENV.fetch("HOMEBREW_DEFAULT_PREFIX").freeze, String)