Use a hardcoded toolcache path since we need to extract there to let Ruby work

This commit is contained in:
Benoit Daloze
2020-11-10 19:58:59 +01:00
parent bb3a0c6e0b
commit ba761ba8ff
5 changed files with 36 additions and 16 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export async function install(platform, engine, version) {
async function downloadAndExtract(platform, engine, version) {
let rubyPrefix
if (common.shouldExtractInToolCache(engine, version)) {
rubyPrefix = common.getToolCacheRubyPrefix(version)
rubyPrefix = common.getToolCacheRubyPrefix(platform, version)
} else if (windows) {
rubyPrefix = path.join(`${common.drive}:`, `${engine}-${version}`)
} else {