From 0ec4904dc738052acf9fd5c1bffe0f98861d640f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 25 Sep 2024 21:02:29 +0200 Subject: [PATCH] Better error for TruffleRuby on Windows * Fixes https://github.com/ruby/setup-ruby/issues/619 --- dist/index.js | 2 ++ index.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index 2cc1a627f..d8e2eaa8c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -65924,6 +65924,8 @@ function validateRubyEngineAndVersion(platform, engineVersions, engine, parsedVe - { os: macos-13, ruby: '2.5' } But of course you should consider dropping support for these long-EOL Rubies, which cannot even be built on recent macOS machines.`) + } else if (engine === 'truffleruby' && platform.startsWith('windows')) { + throw new Error('TruffleRuby does not currently support Windows.') } return version diff --git a/index.js b/index.js index 85d20f616..599109dd4 100644 --- a/index.js +++ b/index.js @@ -190,6 +190,8 @@ function validateRubyEngineAndVersion(platform, engineVersions, engine, parsedVe - { os: macos-13, ruby: '2.5' } But of course you should consider dropping support for these long-EOL Rubies, which cannot even be built on recent macOS machines.`) + } else if (engine === 'truffleruby' && platform.startsWith('windows')) { + throw new Error('TruffleRuby does not currently support Windows.') } return version