From 40a287f3c3d09a12b92b5594e09331b9998c5075 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Sat, 30 Jan 2016 21:40:26 -0500 Subject: [PATCH] config.rb: add comment explaining HOMEBREW_TEMP logic --- Library/Homebrew/config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb index 85c4713285..98d75a8b83 100644 --- a/Library/Homebrew/config.rb +++ b/Library/Homebrew/config.rb @@ -45,6 +45,7 @@ HOMEBREW_CELLAR = Pathname.new(ENV["HOMEBREW_CELLAR"]) HOMEBREW_LOGS = Pathname.new(ENV["HOMEBREW_LOGS"] || "~/Library/Logs/Homebrew/").expand_path +# Must use /tmp instead of $TMPDIR because long paths break Unix domain sockets HOMEBREW_TEMP = Pathname.new(ENV.fetch("HOMEBREW_TEMP", "/tmp")) unless defined? HOMEBREW_LIBRARY_PATH