Fix tc.find() calls to use the proper name on self-hosted

This commit is contained in:
Benoit Daloze
2023-03-05 14:56:02 +01:00
parent ddde3938f5
commit d03a71de6e
4 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export function getAvailableVersions(platform, engine) {
export async function install(platform, engine, version) {
let rubyPrefix, inToolCache
if (common.shouldUseToolCache(engine, version)) {
inToolCache = tc.find('Ruby', version)
inToolCache = tc.find(common.engineToToolCacheName(engine), version)
if (inToolCache) {
rubyPrefix = inToolCache
} else {