mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Invalidate cache key since Rubies are installed in the toolcache now
* Some gems might capture the absolute path of the Ruby prefix.
This commit is contained in:
+1
-1
@@ -51447,7 +51447,7 @@ async function bundleInstall(gemfile, lockFile, platform, engine, version) {
|
||||
}
|
||||
|
||||
async function computeBaseKey(platform, engine, version, gemfile) {
|
||||
let baseKey = `setup-ruby-bundle-install-${platform}-${engine}-${version}-${gemfile}`
|
||||
let baseKey = `setup-ruby-toolcache-bundle-install-${platform}-${engine}-${version}-${gemfile}`
|
||||
if (engine !== 'jruby' && common.isHeadVersion(version)) {
|
||||
let revision = '';
|
||||
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {
|
||||
|
||||
@@ -306,7 +306,7 @@ async function bundleInstall(gemfile, lockFile, platform, engine, version) {
|
||||
}
|
||||
|
||||
async function computeBaseKey(platform, engine, version, gemfile) {
|
||||
let baseKey = `setup-ruby-bundle-install-${platform}-${engine}-${version}-${gemfile}`
|
||||
let baseKey = `setup-ruby-toolcache-bundle-install-${platform}-${engine}-${version}-${gemfile}`
|
||||
if (engine !== 'jruby' && common.isHeadVersion(version)) {
|
||||
let revision = '';
|
||||
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {
|
||||
|
||||
Reference in New Issue
Block a user