summaryrefslogtreecommitdiff
path: root/src/rebar_packages.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_packages.erl')
-rw-r--r--src/rebar_packages.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_packages.erl b/src/rebar_packages.erl
index cd979fa..7974fda 100644
--- a/src/rebar_packages.erl
+++ b/src/rebar_packages.erl
@@ -6,7 +6,8 @@
-spec get_packages(rebar_state:t()) -> {rebar_dict(), rlx_depsolver:t()}.
get_packages(State) ->
- RebarDir = rebar_state:get(State, global_rebar_dir, filename:join(os:getenv("HOME"), ".rebar")),
+ Home = rebar_utils:home_dir(),
+ RebarDir = rebar_state:get(State, global_rebar_dir, filename:join(Home, ?CONFIG_DIR)),
PackagesFile = filename:join(RebarDir, "packages"),
case ec_file:exists(PackagesFile) of
true ->