mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Crash on invalid Elixir+OTP combo (#134)
* Prevent "future" errors when choosing incompatible Elixir v. OTP versions * Fix tests as per GitHub Actions' output * Make test elixir `master` strict It has no -otp- in the name
This commit is contained in:
committed by
GitHub
parent
7dd0d763a8
commit
6b2f8153b4
+5
-3
@@ -188,9 +188,11 @@ async function getElixirVersion(exSpec0, otpVersion) {
|
||||
`Using Elixir ${elixirVersion} (built for OTP ${otpVersionMajor})`,
|
||||
)
|
||||
} else {
|
||||
// ... and it's not available: fallback to the 'generic' version (v1.4.5 only).
|
||||
elixirVersionWithOTP = elixirVersion
|
||||
core.info(`Using Elixir ${elixirVersion}`)
|
||||
// ... and it's not available: exit with exception
|
||||
throw new Error(
|
||||
`Requested Elixir / Erlang/OTP version (${exSpec0} / ${otpVersion}) not ` +
|
||||
'found in version list (did you check Compatibility between Elixir and Erlang/OTP?)',
|
||||
)
|
||||
}
|
||||
} else {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user