Use builds.hex.pm domain

This commit is contained in:
Wojtek Mach 2023-05-30 17:33:46 +02:00
parent 6ba699fbf5
commit 04afc9bd51
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ download_elixir() {
if [ ! -d $elixir_dir ]; then
otp_release=$(erl -noshell -eval 'io:format("~s", [erlang:system_info(otp_release)]), halt().')
elixir_zip=v${ELIXIR_VERSION}-otp-${otp_release}.zip
url=https://repo.hex.pm/builds/elixir/$elixir_zip
url=https://builds.hex.pm/builds/elixir/$elixir_zip
echo downloading $url
curl --fail -LO $url
mkdir -p $elixir_dir

View file

@ -93,7 +93,7 @@ defmodule Standalone do
end
defp download_elixir_at_destination(destination, version) do
url = "https://repo.hex.pm/builds/elixir/v#{version}-otp-#{System.otp_release()}.zip"
url = "https://builds.hex.pm/builds/elixir/v#{version}-otp-#{System.otp_release()}.zip"
path = Path.join(System.tmp_dir!(), "elixir_#{version}.zip")
unless File.exists?(path) do