mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 15:04:20 +02:00
Better error for TruffleRuby on Windows
* Fixes https://github.com/ruby/setup-ruby/issues/619
This commit is contained in:
+2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user