summaryrefslogtreecommitdiff
path: root/src/rebar_dir.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_dir.erl')
-rw-r--r--src/rebar_dir.erl10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/rebar_dir.erl b/src/rebar_dir.erl
index df05cdb..1ec58d4 100644
--- a/src/rebar_dir.erl
+++ b/src/rebar_dir.erl
@@ -94,14 +94,8 @@ global_config() ->
-spec global_cache_dir(rebar_dict()) -> file:filename_all().
global_cache_dir(Opts) ->
- RebarCacheDir = case os:getenv("REBAR_CACHE_DIR") of
- false ->
- Home = home_dir(),
- filename:join([Home, ".cache", "rebar3"]);
- ConfigFile ->
- ConfigFile
- end,
- rebar_opts:get(Opts, global_rebar_dir, RebarCacheDir).
+ Home = home_dir(),
+ rebar_opts:get(Opts, global_rebar_dir, filename:join([Home, ".cache", "rebar3"])).
local_cache_dir(Dir) ->
filename:join(Dir, ".rebar3").