erlef/setup-beam

Regression: Valid OTP Version is not found

Closed this issue · 2 comments

For Erlang 23.3, I get the following error.

Run erlef/setup-beam@v1
  with:
    otp-version: 23.2
    elixir-version: 1.11
    github-token: ***
    install-hex: true
    install-rebar: true
    version-type: loose
    disable_problem_matchers: false
Error: Requested Erlang/OTP version (23.3) not found in version list (should you be using option 'version-type': 'strict'?)

https://github.com/elixir-gettext/expo/actions/runs/3872550709/jobs/6601521921

This used to work back in November: https://github.com/elixir-gettext/expo/actions/runs/3457012505/jobs/5776830927

The version 23.3 is on the Hex.pm Bob List which I believe is the base for this action: https://repo.hex.pm/builds/otp/ubuntu-20.04/builds.txt

Having the same issue, it stopped working a month ago.
The ubuntu version is 22.04 and erlang is 23.2. Screenshot attached.
Screen Shot 2023-01-10 at 11 35 33

Now, if I put version-type: strict as in:

    steps:
    - uses: actions/checkout@v2
    - name: Set up Elixir
      uses: erlef/setup-beam@v1
      with:
        elixir-version: '1.11.2' # Define the elixir version [required]
        otp-version: '23.2.1' # Define the OTP version [required]
        version-type: strict

I get this:
Screen Shot 2023-01-10 at 11 57 24

from which I can conclude that the OTP version is being passed as undefined to install-otp.sh.
That's as far as I've got

EDIT: After further inspection I concluded that I can't read :) the problem is that ubuntu should be 20.04 for OTP < 24 🤦

Looking at your actions @maennchen I see your setup is the same as mine, probably using ubuntu-latest which is now 22.04. I suggest to either raise OTP version in your project, or change ubuntu version to ubuntu-20.04. I've tested on actions in my project and it solved the issue 🙂

@svrdlans Oh, you're right 😅

My bad, closing issue.