sandbox: loosen restriction around Xcode caching

It doesn't really need to be as tight as it is currently, certainly outside brew
you can write to here without any special privileges beside being the user,
and being so can tight can cause issues on clean systems or systems where
Xcode hasn't been used before as exposed by https://github.com/Homebrew/homebrew-core/issues/4892.

Closes https://github.com/Homebrew/homebrew-core/issues/4892.
This commit is contained in:
Dominyk Tiller 2016-09-22 05:11:41 +01:00
parent c7d75bffeb
commit 3bbf62f37a
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -77,7 +77,7 @@ class Sandbox
# Xcode projects expect access to certain cache/archive dirs. # Xcode projects expect access to certain cache/archive dirs.
def allow_write_xcode def allow_write_xcode
allow_write_path "/Users/#{ENV["USER"]}/Library/Developer/Xcode/DerivedData/" allow_write_path "/Users/#{ENV["USER"]}/Library/Developer"
end end
def allow_write_log(formula) def allow_write_log(formula)