Skip to content

Commit 5ca2c15

Browse files
committed
Ensure MIX_BUILD_PATH is expanded
1 parent 3a290c3 commit 5ca2c15

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/mix/lib/mix/project.ex

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,16 @@ defmodule Mix.Project do
767767
"""
768768
@spec build_path(keyword) :: Path.t()
769769
def build_path(config \\ config()) do
770-
System.get_env("MIX_BUILD_PATH") || config[:deps_build_path] || do_build_path(config)
770+
cond do
771+
build_path = System.get_env("MIX_BUILD_PATH") ->
772+
Path.expand(build_path)
773+
774+
deps_build_path = config[:deps_build_path] ->
775+
deps_build_path
776+
777+
true ->
778+
do_build_path(config)
779+
end
771780
end
772781

773782
defp do_build_path(config) do

0 commit comments

Comments
 (0)