-
Notifications
You must be signed in to change notification settings - Fork 62
OTP version undefined #56
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
Comments
@paulo-ferraz-oliveira Would this have anything to do with your recent merge? |
I'm not sure. Could you point me to a Are you actually using |
It seems it's possible today's release broke your build. Could you retry with option |
Output: `Installing Erlang/OTP OTP-22.3.4.2 - built on ubuntu-20.04 Installed Erlang/OTP version follows |
Did you try without '-otp-...'? Because that should be inferred from the Erlang version. |
The action is semver based, as much as possible, but some versions (like OTP's) are not, which makes us have to choose between offering a "range" -like function or be strict in versions (which is why the option I just mentioned was introduced). As an example, take '22.3'. Some might want '22.3' exactly, some might want '22.3.1' and some '22.3.1'. We chose "ranges" by default, but it might not suit everyone: we hope it suits the majority, since this was the default behaviour. |
Did you remove the I'm drafting #57, as a means to potentially solve your issue. This was a hidden bug, as previous behaviour was supposed to be semver -based, but apparently was not (fixing that surfaced your issue). |
I have a similar error that started happening this morning. It's slightly different, but feels like it may be related. Actions output: Config: env:
MIX_ENV: test
OTP_VERSION_SPEC: "24.0.2"
ELIXIR_VERSION_SPEC: "1.12.1"
jobs:
compile:
name: Compile
steps:
- uses: erlef/setup-beam@v1
id: setup
with:
otp-version: ${{ env.OTP_VERSION_SPEC }}
elixir-version: ${{ env.ELIXIR_VERSION_SPEC }}
version-type: "strict" |
8000
Adding the v back to the elixir version fixed this for us @paulo-ferraz-oliveira , thank you |
You can check the behaviour here: https://github.com/erlef/setup-beam/runs/3021625662?check_suite_focus=true#step:3:3 |
Hey, @vanvoljg. Your issue does seem similar, but I'll have to test further. You shouldn't need the |
I wondered if it would be required, but tested just in case. Thanks for the clarification! If it helps you, I got the exact same error both with and without |
Can you add a |
@paulo-ferraz-oliveira I added it and, unfortunately, it returns the same error. Also realized I omitted a step in the config I mentioned. I don't know if will matter, but env:
MIX_ENV: test
OTP_VERSION_SPEC: "24.0.2"
ELIXIR_VERSION_SPEC: "v1.12.1"
# Change either of these if you want to bust the cache:
DEPS_CACHE_PREFIX: v1-
BUILD_CACHE_PREFIX: v1-
jobs:
compile:
name: Compile
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
id: setup
with:
otp-version: ${{ env.OTP_VERSION_SPEC }}
elixir-version: ${{ env.ELIXIR_VERSION_SPEC }}
version-type: "strict" |
A new version will hopefully be out today that'll solve the Elixir versioning issue as well as the strict Erlang versioning. |
https://github.com/erlef/setup-beam/releases/tag/v1.8.1 is released. Let us know if you have issues using it. |
Unsure if this is from today's changes, but we suddenly get:
Installing Erlang/OTP undefined - built on ubuntu-20.04 /home/runner/work/_actions/erlef/setup-elixir/v1/dist/install-otp.sh ubuntu-20.04 undefined Error: The process '/home/runner/work/_actions/erlef/setup-elixir/v1/dist/install-otp.sh' failed with exit code 8
We're not having this issue with OTP 24.0.3, but it seems to be a sudden issue with otp-version: 22.3.4.2 ?
The text was updated successfully, but these errors were encountered: