Skip to content

Commit ebed7f7

Browse files
committed
Invalidate cache key since Rubies are installed in the toolcache now
* Some gems might capture the absolute path of the Ruby prefix.
1 parent 933dca7 commit ebed7f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ async function bundleInstall(gemfile, lockFile, platform, engine, version) {
306306
}
307307

308308
async function computeBaseKey(platform, engine, version, gemfile) {
309-
let baseKey = `setup-ruby-bundle-install-${platform}-${engine}-${version}-${gemfile}`
309+
let baseKey = `setup-ruby-toolcache-bundle-install-${platform}-${engine}-${version}-${gemfile}`
310310
if (engine !== 'jruby' && common.isHeadVersion(version)) {
311311
let revision = '';
312312
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {

0 commit comments

Comments
 (0)