From 035318d507ba0d19e0d323d909ed36226a825cba Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 13 May 2026 10:06:28 -0500 Subject: [PATCH] feat: gigalixir-26 stack support --- README.md | 3 ++- lib/canonical_version.sh | 7 +++++++ test/erlang_funcs.sh | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed584d0..3cba784 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ * gigalixir-20 stack: https://builds.hex.pm/builds/otp/ubuntu-20.04/builds.txt * gigalixir-22 stack: https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt * gigalixir-24 stack: https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt + * gigalixir-26 stack: https://builds.hex.pm/builds/otp/ubuntu-26.04/builds.txt * All other stacks: https://github.com/gigalixir/gigalixir-buildpack-elixir-otp-builds/blob/main/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 @@ -109,7 +110,7 @@ erlang_version=18.2.1 ## Tests Tests are available in the [test](test) directory. -To run all tests, use `for tst in test/*; do $tst; done`. +To run all tests, use `make test`. ## Credits diff --git a/lib/canonical_version.sh b/lib/canonical_version.sh index 8371737..02aa282 100755 --- a/lib/canonical_version.sh +++ b/lib/canonical_version.sh @@ -11,6 +11,9 @@ erlang_builds_url() { "heroku-24") erlang_builds_url="https://builds.hex.pm/builds/otp/ubuntu-24.04" ;; + "heroku-26") + erlang_builds_url="https://builds.hex.pm/builds/otp/ubuntu-26.04" + ;; *) erlang_builds_url="https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14" ;; @@ -39,6 +42,10 @@ fetch_erlang_versions() { url="https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt" curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}' > /tmp/otp_versions ;; + "heroku-26") + url="https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt" + curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}' > /tmp/otp_versions + ;; *) url="https://raw.githubusercontent.com/HashNuke/heroku-buildpack-elixir-otp-builds/master/otp-versions" curl -s "$url" > /tmp/otp_versions diff --git a/test/erlang_funcs.sh b/test/erlang_funcs.sh index 001c437..91cced5 100755 --- a/test/erlang_funcs.sh +++ b/test/erlang_funcs.sh @@ -57,6 +57,14 @@ suite "erlang_builds_url" [ "$result" == "https://builds.hex.pm/builds/otp/ubuntu-24.04" ] + test "returns heroku-26 URL" + + STACK="heroku-26" + result=$(erlang_builds_url) + + [ "$result" == "https://builds.hex.pm/builds/otp/ubuntu-26.04" ] + + test "returns cedar-14 URL for unknown stack" STACK="unknown-stack"