From cad00fee065c81a91517dcb854b7fed147927fa5 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 2 Jun 2026 17:20:06 -0500 Subject: [PATCH] ci: install hex/rebar before deps.get to fix OTP 28 compat The previous commit bumped CI from OTP 27.2/Elixir 1.18.1 to OTP 28.5/Elixir 1.19.5. The broad mix cache restore-keys was restoring a stale ~/.mix cache with hex compiled for the old OTP, causing beam_load errors on new bs_add instructions. Adding explicit mix local.hex --force ensures the correct hex version for the running OTP is installed before deps.get. --- .forgejo/workflows/production.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/production.yaml b/.forgejo/workflows/production.yaml index f4557b8f..84a95484 100644 --- a/.forgejo/workflows/production.yaml +++ b/.forgejo/workflows/production.yaml @@ -81,6 +81,11 @@ jobs: apt-get update apt-get install -y libssl-dev libsnmp-dev snmp-mibs-downloader postgresql-client + - name: Install Hex and Rebar + run: | + mix local.hex --force + mix local.rebar --force + - name: Install dependencies run: mix deps.get