From ecc29c609d0d0f21136f33af324614062fab0228 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 30 Apr 2024 18:42:11 -0500 Subject: [PATCH] feat: gigalixir-24 and heroku-24 support --- README.md | 3 ++- lib/canonical_version.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9e40ca..6bf4ddd 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,8 @@ * Erlang - Prebuilt packages (17.5, 17.4, etc) * The full list of prebuilt packages can be found here: * gigalixir-20 or heroku-20 stacks: https://builds.hex.pm/builds/otp/ubuntu-20.04/builds.txt - * heroku-22 stacks: https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt + * gigalixir-22 or heroku-22 stacks: https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt + * gigalixir-24 or heroku-24 stacks: https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt * All other stacks: https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions * Elixir - Prebuilt releases (1.0.4, 1.0.3, etc) or prebuilt branches (master, v1.7, etc) * The full list of releases can be found here: https://github.com/elixir-lang/elixir/releases diff --git a/lib/canonical_version.sh b/lib/canonical_version.sh index 7b4a538..c858acb 100755 --- a/lib/canonical_version.sh +++ b/lib/canonical_version.sh @@ -8,6 +8,9 @@ erlang_builds_url() { "heroku-22") erlang_builds_url="https://builds.hex.pm/builds/otp/ubuntu-22.04" ;; + "heroku-24") + erlang_builds_url="https://builds.hex.pm/builds/otp/ubuntu-24.04" + ;; *) erlang_builds_url="https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14" ;; @@ -30,6 +33,10 @@ fetch_erlang_versions() { url="https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt" curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}' ;; + "heroku-24") + url="https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt" + curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}' + ;; *) url="https://raw.githubusercontent.com/HashNuke/heroku-buildpack-elixir-otp-builds/master/otp-versions" curl -s "$url"