File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,17 @@ defmodule Mix.Gleam do
36
36
37
37
spec =
38
38
case requirement do
39
- % { "version" => version } -> { dep , version , opts }
40
- % { "path" => path } -> { dep , Keyword . merge ( opts , path: path ) }
39
+ % { "version" => version } ->
40
+ { dep , version , opts }
41
+
42
+ % { "path" => path } ->
43
+ { dep , Keyword . merge ( opts , path: path ) }
44
+
45
+ % { "git" => git , "ref" => ref } ->
46
+ { dep , git: git , ref: ref }
47
+
48
+ _ ->
49
+ Mix . raise ( "Gleam package #{ dep } has unsupported requirement: #{ inspect ( requirement ) } " )
41
50
end
42
51
43
52
case spec do
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ defmodule Mix.GleamTest do
44
44
"version" => "1.0.0" ,
45
45
"gleam" => ">= 1.8.0" ,
46
46
"dependencies" => % {
47
+ "git_dep" => % { "git" => "../git_dep" , "ref" => "957b83b" } ,
47
48
"gleam_stdlib" => % { "version" => ">= 0.18.0 and < 2.0.0" } ,
48
49
"my_other_project" => % { "path" => "../my_other_project" }
49
50
} ,
@@ -56,6 +57,7 @@ defmodule Mix.GleamTest do
56
57
version: "1.0.0" ,
57
58
gleam: ">= 1.8.0" ,
58
59
deps: [
60
+ { :git_dep , git: "../git_dep" , ref: "957b83b" } ,
59
61
{ :gleam_stdlib , ">= 0.18.0 and < 2.0.0" } ,
60
62
{ :my_other_project , path: "../my_other_project" } ,
61
63
{ :gleeunit , ">= 1.0.0 and < 2.0.0" , only: :dev }
You can’t perform that action at this time.
0 commit comments