Skip to content

Commit 0ec4904

Browse files
committed
Better error for TruffleRuby on Windows
* Fixes #619
1 parent f321cf5 commit 0ec4904

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ function validateRubyEngineAndVersion(platform, engineVersions, engine, parsedVe
190190
- { os: macos-13, ruby: '2.5' }
191191
192192
But of course you should consider dropping support for these long-EOL Rubies, which cannot even be built on recent macOS machines.`)
193+
} else if (engine === 'truffleruby' && platform.startsWith('windows')) {
194+
throw new Error('TruffleRuby does not currently support Windows.')
193195
}
194196

195197
return version

0 commit comments

Comments
 (0)