mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 17:09:08 +08:00
Address bugbash issues
This commit is contained in:
parent
0ff35ed4a1
commit
a20e7c1a03
1
.github/workflows/cache-windows-test.yml
vendored
1
.github/workflows/cache-windows-test.yml
vendored
@ -78,7 +78,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf test-cache
|
rm -rf test-cache
|
||||||
rm -rf ~/test-cache
|
rm -rf ~/test-cache
|
||||||
rm -f cache.tar
|
|
||||||
|
|
||||||
- name: Restore cache using restoreCache() with Azure SDK
|
- name: Restore cache using restoreCache() with Azure SDK
|
||||||
run: |
|
run: |
|
||||||
|
2
packages/cache/src/cache.ts
vendored
2
packages/cache/src/cache.ts
vendored
@ -109,7 +109,7 @@ export async function restoreCache(
|
|||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
core.debug(
|
core.info(
|
||||||
"Couldn't find cache entry with zstd compression, falling back to gzip compression."
|
"Couldn't find cache entry with zstd compression, falling back to gzip compression."
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
8
packages/cache/src/internal/tar.ts
vendored
8
packages/cache/src/internal/tar.ts
vendored
@ -183,7 +183,7 @@ async function getDecompressionProgram(
|
|||||||
case CompressionMethod.Zstd:
|
case CompressionMethod.Zstd:
|
||||||
return BSD_TAR_ZSTD
|
return BSD_TAR_ZSTD
|
||||||
? [
|
? [
|
||||||
'zstd -d --long=30 -o',
|
'zstd -d --long=30 --force -o',
|
||||||
TarFilename,
|
TarFilename,
|
||||||
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
||||||
]
|
]
|
||||||
@ -194,7 +194,7 @@ async function getDecompressionProgram(
|
|||||||
case CompressionMethod.ZstdWithoutLong:
|
case CompressionMethod.ZstdWithoutLong:
|
||||||
return BSD_TAR_ZSTD
|
return BSD_TAR_ZSTD
|
||||||
? [
|
? [
|
||||||
'zstd -d -o',
|
'zstd -d --force -o',
|
||||||
TarFilename,
|
TarFilename,
|
||||||
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
||||||
]
|
]
|
||||||
@ -223,7 +223,7 @@ async function getCompressionProgram(
|
|||||||
case CompressionMethod.Zstd:
|
case CompressionMethod.Zstd:
|
||||||
return BSD_TAR_ZSTD
|
return BSD_TAR_ZSTD
|
||||||
? [
|
? [
|
||||||
'zstd -T0 --long=30 -o',
|
'zstd -T0 --long=30 --force -o',
|
||||||
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||||
TarFilename
|
TarFilename
|
||||||
]
|
]
|
||||||
@ -234,7 +234,7 @@ async function getCompressionProgram(
|
|||||||
case CompressionMethod.ZstdWithoutLong:
|
case CompressionMethod.ZstdWithoutLong:
|
||||||
return BSD_TAR_ZSTD
|
return BSD_TAR_ZSTD
|
||||||
? [
|
? [
|
||||||
'zstd -T0 -o',
|
'zstd -T0 --force -o',
|
||||||
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||||
TarFilename
|
TarFilename
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user