ruby-head now sets a proper ABI version

https://bugs.ruby-lang.org/issues/18249
This commit is contained in:
Benoit Daloze
2022-03-03 14:59:41 +01:00
parent cd9d3de43b
commit 4d8ce7b87d
2 changed files with 2 additions and 4 deletions
Generated Vendored
+1 -2
View File
@@ -206,8 +206,7 @@ async function computeBaseKey(platform, engine, version, lockFile, cacheVersion)
if (common.isHeadVersion(version)) {
if (engine !== 'jruby') {
// CRuby dev versions do not change the ABI version when the ABI changes, so use the commit as the ABI version
let print_abi = engine === 'ruby' ? 'print RUBY_REVISION' : "print RbConfig::CONFIG['ruby_version']"
let print_abi = "print RbConfig::CONFIG['ruby_version']"
let abi = ''
await exec.exec('ruby', ['-e', print_abi], {
silent: true,