Remove unused platform args from computeBaseKey

ref: https://github.com/ruby/setup-ruby/pull/473
This commit is contained in:
wt-l00
2025-06-20 22:32:39 +02:00
committed by Benoit Daloze
parent a4effe49ee
commit e851ebd3ad
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
// cache key
const paths = [cachePath]
const baseKey = await computeBaseKey(platform, engine, rubyVersion, lockFile, cacheVersion)
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)
const key = `${baseKey}-${await common.hashFile(lockFile)}`
// If only Gemfile.lock changes we can reuse part of the cache, and clean old gem versions below
const restoreKeys = [`${baseKey}-`]
@@ -232,7 +232,7 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
return true
}
async function computeBaseKey(platform, engine, version, lockFile, cacheVersion) {
async function computeBaseKey(engine, version, lockFile, cacheVersion) {
const cwd = process.cwd()
const bundleWith = process.env['BUNDLE_WITH'] || ''
const bundleWithout = process.env['BUNDLE_WITHOUT'] || ''