Skip to content

Commit

Permalink
Fix #52: Handle new format for HEX responses (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
elbrujohalcon authored Feb 6, 2023
1 parent ce57c31 commit 03c1e23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dep_hex.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ get_latest_vsn(Name) ->
case hex_repo:get_package(config(), atom_to_binary(Name, utf8)) of
{ok, {200, _, #{releases := [_ | _] = Versions}}} ->
lists:last([Version || #{version := Version} <- Versions]);
{ok, {200, _, Versions}} ->
lists:last([Version || #{version := Version} <- Versions]);
Other ->
rebar_api:warn("Couldn't fetch latest version of ~p from hex.pm:\n~p", [Name, Other]),
undefined
Expand Down

0 comments on commit 03c1e23

Please sign in to comment.