Skip to content

Commit

Permalink
Better error for TruffleRuby on Windows
Browse files Browse the repository at this point in the history
* Fixes ruby#619
  • Loading branch information
eregon authored and navidemad committed Nov 9, 2024
1 parent 8296a28 commit 73bd029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73bd029

Please sign in to comment.