Skip to content

Commit cec433f

Browse files
committed
Add test to check for downloaded erlang version.
Use heroku's copy of the erlang builds
1 parent f4444a8 commit cec433f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.language_versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
elixir_version="0.12.4"
2-
erlang_version="R16B03-1"
2+
erlang_version="R16B03"

bin/compile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,18 @@ else
2323
source ${build_pack_dir}/.language_versions
2424
fi
2525

26-
erlang_tar="otp_src_${erlang_version}.tar.gz"
27-
erlang_source_url="https://packages.erlang-solutions.com/erlang/esl-erlang-src/${erlang_tar}"
26+
erlang_tar="OTP_${erlang_version}.tgz"
27+
erlang_source_url="https://s3.amazonaws.com/heroku-buildpack-erlang/${erlang_tar}"
2828
elixir_tar="v${elixir_version}.tar.gz"
2929
elixir_source_url="https://github.com/elixir-lang/elixir/tarball/${elixir_tar}"
3030

3131
echo "Erlang version $erlang_version"
3232
echo "Elixir version $elixir_version"
3333

34-
ls ${cache_dir}
35-
3634
(
3735
set -e
3836

39-
# test -f ${cache_dir}/${erlang_tar} && exit
37+
test -f ${cache_dir}/${erlang_tar} && exit
4038

4139
# To not add too much stuff to the cache dir
4240
rm -rf ${cache_dir}/*

0 commit comments

Comments
 (0)