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
88bf60d5
Unverified
Commit
88bf60d5
authored
6 years ago
by
commitay
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4815 from commitay/cargo-cache
rust/cargo: enable caching
parents
67152b86
11a6413f
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/cleanup.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/cleanup.rb
Library/Homebrew/formula.rb
+2
-0
2 additions, 0 deletions
Library/Homebrew/formula.rb
Library/Homebrew/test/cleanup_spec.rb
+9
-0
9 additions, 0 deletions
Library/Homebrew/test/cleanup_spec.rb
with
12 additions
and
1 deletion
Library/Homebrew/cleanup.rb
+
1
−
1
View file @
88bf60d5
...
...
@@ -36,7 +36,7 @@ module CleanupRefinement
end
def
nested_cache?
directory?
&&
%w[go_cache glide_home java_cache npm_cache gclient_cache]
.
include?
(
basename
.
to_s
)
directory?
&&
%w[
cargo_cache
go_cache glide_home java_cache npm_cache gclient_cache]
.
include?
(
basename
.
to_s
)
end
def
go_cache_directory?
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula.rb
+
2
−
0
View file @
88bf60d5
...
...
@@ -1680,6 +1680,7 @@ class Formula
HOMEBREW_PATH
:
nil
,
_JAVA_OPTIONS:
"
#{
ENV
[
"_JAVA_OPTIONS"
]
}
-Duser.home=
#{
HOMEBREW_CACHE
}
/java_cache"
,
GOCACHE
:
"
#{
HOMEBREW_CACHE
}
/go_cache"
,
CARGO_HOME
:
"
#{
HOMEBREW_CACHE
}
/cargo_cache"
,
}
ENV
.
clear_sensitive_environment!
...
...
@@ -2034,6 +2035,7 @@ class Formula
stage_env
[
:_JAVA_OPTIONS
]
=
"
#{
ENV
[
"_JAVA_OPTIONS"
]
}
-Duser.home=
#{
HOMEBREW_CACHE
}
/java_cache"
stage_env
[
:GOCACHE
]
=
"
#{
HOMEBREW_CACHE
}
/go_cache"
stage_env
[
:CARGO_HOME
]
=
"
#{
HOMEBREW_CACHE
}
/cargo_cache"
stage_env
[
:CURL_HOME
]
=
ENV
[
"CURL_HOME"
]
||
ENV
[
"HOME"
]
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/cleanup_spec.rb
+
9
−
0
View file @
88bf60d5
...
...
@@ -225,6 +225,15 @@ describe Homebrew::Cleanup do
expect
(
incomplete
).
not_to
exist
end
it
"cleans up 'cargo_cache'"
do
cargo_cache
=
(
HOMEBREW_CACHE
/
"cargo_cache"
)
cargo_cache
.
mkpath
subject
.
cleanup_cache
expect
(
cargo_cache
).
not_to
exist
end
it
"cleans up 'go_cache'"
do
go_cache
=
(
HOMEBREW_CACHE
/
"go_cache"
)
go_cache
.
mkpath
...
...
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