mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #16407 from dduugg/default-prefixes
Remove redirection for default prefixes
This commit is contained in:
commit
ab62a717b9
@ -1,7 +0,0 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Homebrew
|
||||
DEFAULT_PREFIX = T.let(ENV.fetch("HOMEBREW_DEFAULT_PREFIX").freeze, String)
|
||||
DEFAULT_REPOSITORY = T.let(ENV.fetch("HOMEBREW_DEFAULT_REPOSITORY").freeze, String)
|
||||
end
|
@ -70,11 +70,12 @@ require "env_config"
|
||||
require "macos_version"
|
||||
require "os"
|
||||
require "messages"
|
||||
require "default_prefix"
|
||||
|
||||
module Homebrew
|
||||
extend FileUtils
|
||||
|
||||
DEFAULT_PREFIX = T.let(ENV.fetch("HOMEBREW_DEFAULT_PREFIX").freeze, String)
|
||||
DEFAULT_REPOSITORY = T.let(ENV.fetch("HOMEBREW_DEFAULT_REPOSITORY").freeze, String)
|
||||
DEFAULT_CELLAR = "#{DEFAULT_PREFIX}/Cellar".freeze
|
||||
DEFAULT_MACOS_CELLAR = "#{HOMEBREW_DEFAULT_PREFIX}/Cellar".freeze
|
||||
DEFAULT_MACOS_ARM_CELLAR = "#{HOMEBREW_MACOS_ARM_DEFAULT_PREFIX}/Cellar".freeze
|
||||
|
@ -1,8 +0,0 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Homebrew
|
||||
# For testing's sake always assume the default prefix
|
||||
DEFAULT_PREFIX = T.let(HOMEBREW_PREFIX.to_s.freeze, String)
|
||||
DEFAULT_REPOSITORY = T.let(HOMEBREW_REPOSITORY.to_s.freeze, String)
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user