Change how we print installed Elixir version (#36)

This commit is contained in:
Wojtek Mach authored and GitHub committed 2021-05-26 13:29:59 +02:00
1 parent b50aa18219
commit e332dc64ad
2 files changed
+8 -4

No files matched your search

+4 -2
View File
@@ -144,11 +144,13 @@ async function getElixirVersion(exSpec0, otpVersion) {
if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) {
// ... and it's available: use it!
elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}`
core.info(`Using Elixir / -otp- version ${elixirVersionWithOTP}`)
core.info(
`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 ${elixirVersionWithOTP}`)
core.info(`Using Elixir ${elixirVersion}`)
}
} else {
throw new Error(