Skip to content

Commit afc7644

Browse files
author
José Valim
committed
Guarantee we get a keyword on mix deps specs
1 parent 7de8804 commit afc7644

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mix/lib/mix/dep/loader.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ defmodule Mix.Dep.Loader do
111111
invalid_dep_format(other)
112112
end
113113

114+
unless Keyword.keyword?(opts) do
115+
invalid_dep_format(other)
116+
end
117+
114118
bin_app = Atom.to_string(app)
115119

116120
dest = Path.join(Mix.Project.deps_path, bin_app)

0 commit comments

Comments
 (0)