more debug logs

This commit is contained in:
Kevin Stillhammer 2024-08-24 00:40:34 +02:00
parent 65e8a8ce38
commit eb355a21cb
No known key found for this signature in database
3 changed files with 31 additions and 14 deletions

View file

@ -27,18 +27,18 @@ export async function downloadLatest(
githubToken
)
let uvExecutablePath: string
let extracted: string
let extractedDir: string
if (platform === 'pc-windows-msvc') {
extracted = await tc.extractZip(downloadPath)
uvExecutablePath = path.join(extracted, 'uv.exe')
extractedDir = await tc.extractZip(downloadPath)
uvExecutablePath = path.join(extractedDir, 'uv.exe')
} else {
extracted = await tc.extractTar(downloadPath)
uvExecutablePath = path.join(extracted, 'uv')
extractedDir = await tc.extractTar(downloadPath)
uvExecutablePath = path.join(extractedDir, 'uv')
}
const version = await getVersion(uvExecutablePath)
await validateChecksum(checkSum, extracted, arch, platform, version)
await validateChecksum(checkSum, downloadPath, arch, platform, version)
const cachedToolDir = await tc.cacheDir(
downloadPath,
extractedDir,
TOOL_CACHE_NAME,
version,
arch