Skip to content

Commit

Permalink
Fix deps on Elixir 1.0 (#942)
Browse files Browse the repository at this point in the history
GitHub removed support for git:// protocol and only Elixir 1.1+ defaults
to https:// for :github deps. Explicitly use the https:// URL instead.
  • Loading branch information
ericmj authored Apr 14, 2022
1 parent 52972cd commit 58d7204
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,32 @@ defmodule Hex.MixProject do
# Hex because we have to unload Hex before compiling it.
defp deps(elixir_version) when elixir_version >= {1, 5, 0} do
[
{:stream_data, [github: "whatyouhide/stream_data", tag: "v0.4.0"] ++ test_opts()},
{:plug, [github: "elixir-lang/plug", tag: "v1.6.1"] ++ test_opts()},
{:mime, [github: "elixir-plug/mime", tag: "v1.3.0"] ++ test_opts()}
{:stream_data,
[git: "https:/whatyouhide/stream_data.git", tag: "v0.4.0"] ++ test_opts()},
{:plug, [git: "https:/elixir-lang/plug.git", tag: "v1.6.1"] ++ test_opts()},
{:mime, [git: "https:/elixir-plug/mime.git", tag: "v1.3.0"] ++ test_opts()}
] ++ deps()
end

defp deps(_) do
[
{:plug, [github: "elixir-lang/plug", tag: "v1.1.6"] ++ test_opts()},
{:mime, [github: "elixir-lang/mime", tag: "v1.0.1"] ++ test_opts()}
{:plug, [git: "https:/elixir-lang/plug.git", tag: "v1.1.6"] ++ test_opts()},
{:mime, [git: "https:/elixir-lang/mime.git", tag: "v1.0.1"] ++ test_opts()}
] ++ deps()
end

defp deps do
[
{:bypass, [github: "PSPDFKit-labs/bypass", only: :test]},
{:cowboy, [github: "ninenines/cowboy", tag: "1.0.4", manager: :rebar3] ++ test_opts()},
{:cowlib, [github: "ninenines/cowlib", tag: "1.0.2", manager: :rebar3] ++ test_opts()},
{:ranch, [github: "ninenines/ranch", tag: "1.2.1", manager: :rebar3] ++ test_opts()}
{:bypass, [git: "https:/PSPDFKit-labs/bypass.git", only: :test]},
{:cowboy,
[git: "https:/ninenines/cowboy.git", tag: "1.0.4", manager: :rebar3] ++
test_opts()},
{:cowlib,
[git: "https:/ninenines/cowlib.git", tag: "1.0.2", manager: :rebar3] ++
test_opts()},
{:ranch,
[git: "https:/ninenines/ranch.git", tag: "1.2.1", manager: :rebar3] ++
test_opts()}
]
end

Expand Down

0 comments on commit 58d7204

Please sign in to comment.