Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
e8ef2125
Commit
e8ef2125
authored
7 years ago
by
Mike McQuaid
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2617 from MikeMcQuaid/interactive-home-access
Allow --interactive to access HOME
parents
25e9e658
7055abc4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/formula.rb
+8
-4
8 additions, 4 deletions
Library/Homebrew/formula.rb
Library/Homebrew/formula_installer.rb
+1
-0
1 addition, 0 deletions
Library/Homebrew/formula_installer.rb
Library/Homebrew/sandbox.rb
+0
-4
0 additions, 4 deletions
Library/Homebrew/sandbox.rb
with
9 additions
and
8 deletions
Library/Homebrew/formula.rb
+
8
−
4
View file @
e8ef2125
...
...
@@ -1943,8 +1943,10 @@ class Formula
old_curl_home
=
ENV
[
"CURL_HOME"
]
old_path
=
ENV
[
"HOMEBREW_PATH"
]
ENV
[
"HOME"
]
=
env_home
ENV
[
"CURL_HOME"
]
=
old_curl_home
||
old_home
unless
ARGV
.
interactive?
ENV
[
"HOME"
]
=
env_home
ENV
[
"CURL_HOME"
]
=
old_curl_home
||
old_home
end
ENV
[
"HOMEBREW_PATH"
]
=
nil
setup_home
env_home
...
...
@@ -1955,8 +1957,10 @@ class Formula
yield
staging
ensure
@buildpath
=
nil
ENV
[
"HOME"
]
=
old_home
ENV
[
"CURL_HOME"
]
=
old_curl_home
unless
ARGV
.
interactive?
ENV
[
"HOME"
]
=
old_home
ENV
[
"CURL_HOME"
]
=
old_curl_home
end
ENV
[
"HOMEBREW_PATH"
]
=
old_path
end
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_installer.rb
+
1
−
0
View file @
e8ef2125
...
...
@@ -664,6 +664,7 @@ class FormulaInstaller
sandbox
=
Sandbox
.
new
formula
.
logs
.
mkpath
sandbox
.
record_log
(
formula
.
logs
/
"build.sandbox.log"
)
sandbox
.
allow_write_path
(
ENV
[
"HOME"
])
if
ARGV
.
interactive?
sandbox
.
allow_write_temp_and_cache
sandbox
.
allow_write_log
(
formula
)
sandbox
.
allow_write_xcode
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/sandbox.rb
+
0
−
4
View file @
e8ef2125
...
...
@@ -5,10 +5,6 @@ class Sandbox
SANDBOX_EXEC
=
"/usr/bin/sandbox-exec"
.
freeze
SANDBOXED_TAPS
=
%w[
homebrew/core
homebrew/dupes
homebrew/fuse
homebrew/devel-only
homebrew/tex
]
.
freeze
def
self
.
available?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment