File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ defmodule Mix.Local do
95
95
"""
96
96
def check_elixir_version_in_ebin ( ebin ) do
97
97
elixir = ebin |> Path . dirname |> Path . join ( ".elixir" ) |> String . to_charlist
98
- case :erl_prim_loader . get_file ( elixir ) do
99
- { :ok , req , _ } ->
98
+ case File . read ( elixir ) do
99
+ { :ok , req } ->
100
100
unless Version . match? ( System . version , req ) do
101
101
archive = ebin |> Path . dirname |> Path . basename
102
102
Mix . shell . error "warning: the archive #{ archive } requires Elixir #{ inspect req } " <>
103
103
"but you are running on v#{ System . version } "
104
104
end
105
105
:ok
106
- :error ->
106
+ { :error , _ } ->
107
107
:ok
108
108
end
109
109
end
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ defmodule Mix.Task do
76
76
end
77
77
78
78
defp safe_list_dir ( path ) do
79
- case :erl_prim_loader . list_dir ( path ) do
79
+ case File . ls ( path ) do
80
80
{ :ok , paths } -> paths
81
81
{ :error , _ } -> [ ]
82
82
end
You can’t perform that action at this time.
0 commit comments