File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -518,8 +518,17 @@ defmodule Mix do
518
518
519
519
deps =
520
520
Enum . map ( deps , fn
521
- dep when is_atom ( dep ) -> { dep , ">= 0.0.0" }
522
- dep -> dep
521
+ dep when is_atom ( dep ) ->
522
+ { dep , ">= 0.0.0" }
523
+
524
+ { app , opts } when is_atom ( app ) and is_list ( opts ) ->
525
+ { app , maybe_expand_path_dep ( opts ) }
526
+
527
+ { app , requirement , opts } when is_atom ( app ) and is_binary ( requirement ) and is_list ( opts ) ->
528
+ { app , requirement , maybe_expand_path_dep ( opts ) }
529
+
530
+ other ->
531
+ other
523
532
end )
524
533
525
534
force? = ! ! opts [ :force ]
@@ -590,4 +599,12 @@ defmodule Mix do
590
599
Mix.ProjectStack . pop ( )
591
600
end
592
601
end
602
+
603
+ defp maybe_expand_path_dep ( opts ) do
604
+ if Keyword . has_key? ( opts , :path ) do
605
+ Keyword . update! ( opts , :path , & Path . expand / 1 )
606
+ else
607
+ opts
608
+ end
609
+ end
593
610
end
You can’t perform that action at this time.
0 commit comments