Browse Source

Add spec for global_cache_dir

pull/1121/head
Francisco Rojas 9 years ago
parent
commit
8b1193e4af
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/rebar_dir.erl

+ 1
- 0
src/rebar_dir.erl View File

@ -92,6 +92,7 @@ global_config() ->
Home = home_dir(), Home = home_dir(),
filename:join([Home, ".config", "rebar3", "rebar.config"]). filename:join([Home, ".config", "rebar3", "rebar.config"]).
-spec global_cache_dir(rebar_dict()) -> file:filename_all().
global_cache_dir(Opts) -> global_cache_dir(Opts) ->
RebarCacheDir = case os:getenv("REBAR_CACHE_DIR") of RebarCacheDir = case os:getenv("REBAR_CACHE_DIR") of
false -> false ->

Loading…
Cancel
Save