File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -159,10 +159,11 @@ defmodule Mix.Dep do
159
159
def format_status ( % Mix.Dep { status: { :nomatchvsn , vsn } , requirement: req } ) ,
160
160
do: "the dependency does not match the requirement #{ inspect req } , got #{ inspect vsn } "
161
161
162
- def format_status ( % Mix.Dep { status: :noscm , from: from } ) ,
163
- do: "the dependency defined in #{ Path . relative_to_cwd ( from ) } did not specify a supported scm, " <>
164
- "expected one of :git, :path, :in_umbrella or " <>
165
- "the package manager Hex to be installed"
162
+ def format_status ( % Mix.Dep { app: app , status: :noscm , from: from } ) do
163
+ "the dependency #{ app } in #{ Path . relative_to_cwd ( from ) } did not specify a supported scm. " <>
164
+ "Please ensure a package manager (like http://hex.pm/) is available or give one of " <>
165
+ ":git, :path or :in_umbrella as option"
166
+ end
166
167
167
168
def format_status ( % Mix.Dep { status: { :lockmismatch , _ } } ) ,
168
169
do: "lock mismatch: the dependency is out of date"
Original file line number Diff line number Diff line change @@ -122,16 +122,15 @@ defmodule Mix.Tasks.DepsTest do
122
122
end
123
123
end
124
124
125
- test "raises when no SCM is specified" do
125
+ test "warns when no SCM is specified" do
126
126
Mix.Project . push NoSCMApp
127
127
128
128
in_fixture "deps_status" , fn ->
129
129
Mix.Tasks.Deps . run [ ]
130
130
131
- msg = " the dependency defined in mix.exs did not specify a supported scm, " <>
132
- "expected one of :git, :path, :in_umbrella " <>
133
- "or the package manager Hex to be installed"
134
- assert_received { :mix_shell , :info , [ "* ok" ] }
131
+ msg = " the dependency ok in mix.exs did not specify a supported scm. " <>
132
+ "Please ensure a package manager (like http://hex.pm/) is available or " <>
133
+ "give one of :git, :path or :in_umbrella as option"
135
134
assert_received { :mix_shell , :info , [ ^ msg ] }
136
135
end
137
136
end
You can’t perform that action at this time.
0 commit comments