homebrew_bootsnap: fix brew tests.

Use one of the possible temp variables and `raise` if not.
This commit is contained in:
Mike McQuaid 2021-01-25 10:54:33 +00:00
parent 95c6e92d9b
commit 85923ae711
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -23,12 +23,14 @@ end
ENV.delete("HOMEBREW_BOOTSNAP_RETRY")
tmp = ENV["HOMEBREW_TEMP"] || ENV["HOMEBREW_DEFAULT_TEMP"]
raise "Needs HOMEBREW_TEMP or HOMEBREW_DEFAULT_TEMP!" unless tmp
Bootsnap.setup(
cache_dir: "#{ENV["HOMEBREW_TEMP"]}/homebrew-bootsnap",
cache_dir: "#{tmp}/homebrew-bootsnap",
development_mode: false, # TODO: use ENV["HOMEBREW_DEVELOPER"]?,
load_path_cache: true,
autoload_paths_cache: true,
disable_trace: true,
compile_cache_iseq: true,
compile_cache_yaml: true,
)