From e851ebd3adcc861aa9e9763c26a9025811f77cd9 Mon Sep 17 00:00:00 2001 From: wt-l00 Date: Fri, 20 Jun 2025 20:15:22 +0900 Subject: [PATCH] Remove unused platform args from computeBaseKey ref: https://github.com/ruby/setup-ruby/pull/473 --- bundler.js | 4 ++-- dist/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bundler.js b/bundler.js index d0f40eca3..8c945d6e0 100644 --- a/bundler.js +++ b/bundler.js @@ -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'] || '' diff --git a/dist/index.js b/dist/index.js index 6cdebc9da..048b584f7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -196,7 +196,7 @@ async function bundleInstall(gemfile, lockFile, platform, engine, rubyVersion, b // 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}-`] @@ -246,7 +246,7 @@ async function bundleInstall(gemfile, lockFile, platform, engine, rubyVersion, b 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'] || ''