Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Valid OTP Version is not found #175

Closed
maennchen opened this issue Jan 9, 2023 · 2 comments
Closed

Regression: Valid OTP Version is not found #175

maennchen opened this issue Jan 9, 2023 · 2 comments

Comments

@maennchen
Copy link
Member

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

@svrdlans
Copy link

svrdlans commented Jan 10, 2023

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 🙂

@maennchen
Copy link
Member Author

@svrdlans Oh, you're right 😅

My bad, closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants