From e332dc64ad807bd3398e335df8d31c7e0cd77ebc Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Wed, 26 May 2021 13:29:59 +0200 Subject: [PATCH] Change how we print installed Elixir version (#36) --- dist/index.js | 6 ++++-- src/setup-beam.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index f0d7432..6d5d312 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4780,11 +4780,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( diff --git a/src/setup-beam.js b/src/setup-beam.js index 05934be..e09c255 100644 --- a/src/setup-beam.js +++ b/src/setup-beam.js @@ -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(