Better error for TruffleRuby on Windows

* Fixes https://github.com/ruby/setup-ruby/issues/619
This commit is contained in:
Benoit Daloze
2024-09-25 21:02:29 +02:00
parent f321cf5a4d
commit 0ec4904dc7
2 changed files with 4 additions and 0 deletions
Generated Vendored
+2
View File
@@ -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
+2
View File
@@ -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