We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d87a77 commit 0cbf50cCopy full SHA for 0cbf50c
lib/mix/lib/mix/rebar.ex
@@ -32,19 +32,27 @@ defmodule Mix.Rebar do
32
def deps(config) do
33
if deps = config[:deps] do
34
Enum.map(deps, fn({ app, req, source }) ->
35
- { scm, url } = case source do
36
- { scm, url } -> { scm, to_binary(url) }
37
- { scm, url, _ } -> { scm, to_binary(url) }
+ scm = case source do
+ { scm, url } -> [{ scm, to_binary(url) }]
+ { scm, url, _ } -> [{ scm, to_binary(url) }]
38
end
39
40
- opts = case source do
+ ref = case source do
41
{ _, _, "" } -> [branch: "HEAD"]
42
{ _, _, { :branch, branch } } -> [branch: to_binary(branch)]
43
{ _, _, { :tag, tag } } -> [tag: to_binary(tag)]
44
{ _, _, ref } -> [ref: to_binary(ref)]
45
_ -> []
46
47
- { app, to_binary(req), [{scm, to_binary(url)}|opts] }
+
48
+ raw = case source do
49
+ { _, _, _, [:raw] } -> [app: false]
50
+ { _, _, _, [raw: true] } -> [app: false]
51
+ _ -> []
52
+ end
53
54
+ opts = scm ++ ref ++ raw
55
+ { app, to_binary(req), opts }
56
end)
57
else
58
[]
0 commit comments