Skip to content

Commit de1d5ff

Browse files
committed
Send elixir version as parameter when installing hex
Signed-off-by: Eric Meadows-Jönsson <[email protected]>
1 parent a4be8fb commit de1d5ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mix/lib/mix/tasks/local.hex.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ defmodule Mix.Tasks.Local.Hex do
1818
"""
1919
@spec run(OptionParser.argv) :: boolean
2020
def run(args) do
21-
Mix.Tasks.Archive.Install.run [@hex_url, "--shell" | args]
21+
url = @hex_url <> "?elixir=" <> System.version
22+
Mix.Tasks.Archive.Install.run [url, "--shell" | args]
2223
end
2324

2425
@doc false

0 commit comments

Comments
 (0)