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 @@ -38,8 +38,17 @@ defmodule Mix.Gleam do
38
38
39
39
spec =
40
40
case requirement do
41
- % { "version" => version } -> { dep , version , opts }
42
- % { "path" => path } -> { dep , Keyword . merge ( opts , path: path ) }
41
+ % { "version" => version } ->
42
+ { dep , version , opts }
43
+
44
+ % { "path" => path } ->
45
+ { dep , Keyword . merge ( opts , path: path ) }
46
+
47
+ % { "git" => git , "ref" => ref } ->
48
+ { dep , git: git , ref: ref }
49
+
50
+ _ ->
51
+ Mix . raise ( "Gleam package #{ dep } has unsupported requirement: #{ inspect ( requirement ) } " )
43
52
end
44
53
45
54
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