From 14d4bc39198e00d7209d43286dc585f74570fee3 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Mon, 26 Jul 2021 17:30:18 +0100 Subject: [PATCH] Ease debugging around ImageOS env.var (#63) --- dist/index.js | 4 +++- src/setup-beam.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 240106b..bbe5fd5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5008,7 +5008,9 @@ function getRunnerOSVersion() { if (!containerFromEnvImageOS) { throw new Error( - "Tried to map a target OS from env. variable 'ImageOS', but failed. If you're using a " + + "Tried to map a target OS from env. variable 'ImageOS' (got " + + `${process.env.ImageOS}` + + "), but failed. If you're using a " + "self-hosted runner, you should set 'env': 'ImageOS': ... to one of the following: " + "['" + `${Object.keys(ImageOSToContainer).join("', '")}` + diff --git a/src/setup-beam.js b/src/setup-beam.js index 97a44d6..3225d4c 100644 --- a/src/setup-beam.js +++ b/src/setup-beam.js @@ -352,7 +352,9 @@ function getRunnerOSVersion() { if (!containerFromEnvImageOS) { throw new Error( - "Tried to map a target OS from env. variable 'ImageOS', but failed. If you're using a " + + "Tried to map a target OS from env. variable 'ImageOS' (got " + + `${process.env.ImageOS}` + + "), but failed. If you're using a " + "self-hosted runner, you should set 'env': 'ImageOS': ... to one of the following: " + "['" + `${Object.keys(ImageOSToContainer).join("', '")}` +