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:
Benoit Daloze
2020-11-09 13:01:13 +01:00
parent 933dca770c
commit ebed7f7b66
2 changed files with 2 additions and 2 deletions
Generated Vendored
+1 -1
View File
@@ -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'], {
+1 -1
View File
@@ -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'], {