erlef / setup-beam

Set up your BEAM-based GitHub Actions workflow (Erlang, Elixir, Gleam, ...)
MIT License
375 stars 50 forks source link

Show version list source URL when raising exception error #301

Open kianmeng opened 1 month ago

kianmeng commented 1 month ago

Is your feature request related to a problem?

Encountered the following error and I'm having a difficult time tried to find the available support Elixir/OTP combination versions at the version list (URL unknown).

Run erlef/setup-beam@v1
  with:git@github.com:kianmeng/error-tracker.git
    elixir-version: 1.14
    otp-version: 27.0
    github-token: ***
    install-hex: true
    install-rebar: true
    version-type: loose
    disable_problem_matchers: false
    hexpm-mirrors: https://builds.hex.pm

Installing Erlang/OTP OTP-27.0.1 - built on amd64/ubuntu-24.04
Error: Requested Elixir / Erlang/OTP version (1.14 / 27.0) not found in version list 
(did you check Compatibility between Elixir and Erlang/OTP?).Elixir and Erlang/OTP 
compatibility can be found at: https://hexdocs.pm/elixir/compatibility-and-deprecations.html

Describe the feature you'd like

Is it possible to show the version list source url in the exception message

Error: Requested Elixir / Erlang/OTP version (1.14 / 27.0) not found in version list at: 
https://builds.hex.pm/...file.txt. Did you check Compatibility between Elixir and Erlang/OTP which
can be found at: https://hexdocs.pm/elixir/compatibility-and-deprecations.html ?

Or in the with field?

    disable_problem_matchers: false
    hexpm-mirrors: https://builds.hex.pm
    version list source: https://builds.hex.pm/.../file.txt

Describe alternatives you've considered

None.

Additional context

None.

paulo-ferraz-oliveira commented 1 month ago

Hey, @kianmeng. It might be possible (I thought we did, already). In the meantime, here's what we use as reference:

Tweak the Ubuntu version to your liking.