mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Change how we print installed Elixir version (#36)
This commit is contained in:
Vendored
+4
-2
@@ -4780,11 +4780,13 @@ async function getElixirVersion(exSpec0, otpVersion) {
|
|||||||
if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) {
|
if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) {
|
||||||
// ... and it's available: use it!
|
// ... and it's available: use it!
|
||||||
elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}`
|
elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}`
|
||||||
core.info(`Using Elixir / -otp- version ${elixirVersionWithOTP}`)
|
core.info(
|
||||||
|
`Using Elixir ${elixirVersion} (built for OTP ${otpVersionMajor})`,
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
// ... and it's not available: fallback to the "generic" version (v1.4.5 only).
|
// ... and it's not available: fallback to the "generic" version (v1.4.5 only).
|
||||||
elixirVersionWithOTP = elixirVersion
|
elixirVersionWithOTP = elixirVersion
|
||||||
core.info(`Using Elixir ${elixirVersionWithOTP}`)
|
core.info(`Using Elixir ${elixirVersion}`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|||||||
+4
-2
@@ -144,11 +144,13 @@ async function getElixirVersion(exSpec0, otpVersion) {
|
|||||||
if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) {
|
if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) {
|
||||||
// ... and it's available: use it!
|
// ... and it's available: use it!
|
||||||
elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}`
|
elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}`
|
||||||
core.info(`Using Elixir / -otp- version ${elixirVersionWithOTP}`)
|
core.info(
|
||||||
|
`Using Elixir ${elixirVersion} (built for OTP ${otpVersionMajor})`,
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
// ... and it's not available: fallback to the "generic" version (v1.4.5 only).
|
// ... and it's not available: fallback to the "generic" version (v1.4.5 only).
|
||||||
elixirVersionWithOTP = elixirVersion
|
elixirVersionWithOTP = elixirVersion
|
||||||
core.info(`Using Elixir ${elixirVersionWithOTP}`)
|
core.info(`Using Elixir ${elixirVersion}`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|||||||
Reference in New Issue
Block a user