mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 09:49:07 +08:00
Fix tar test
This commit is contained in:
parent
2e5a517460
commit
424ae62ee7
4
packages/cache/__tests__/tar.test.ts
vendored
4
packages/cache/__tests__/tar.test.ts
vendored
@ -99,7 +99,7 @@ test('zstd extract tar with windows BSDtar', async () => {
|
||||
TarFilename.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
'&&',
|
||||
`${tarPath}`,
|
||||
`"${tarPath}"`,
|
||||
'-xf',
|
||||
TarFilename.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
'-P',
|
||||
@ -342,7 +342,7 @@ test('zstd list tar with windows BSDtar', async () => {
|
||||
TarFilename.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
'&&',
|
||||
`${tarPath}`,
|
||||
`"${tarPath}"`,
|
||||
'-tf',
|
||||
TarFilename.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
'-P'
|
||||
|
2
packages/cache/src/internal/constants.ts
vendored
2
packages/cache/src/internal/constants.ts
vendored
@ -35,4 +35,4 @@ export const SystemTarPathOnWindows = `${process.env['SYSTEMDRIVE']}\\Windows\\S
|
||||
|
||||
export const TarFilename = 'cache.tar'
|
||||
|
||||
export const ManifestFilename = 'manifest.txt'
|
||||
export const ManifestFilename = 'manifest.txt'
|
||||
|
2
packages/cache/src/internal/contracts.d.ts
vendored
2
packages/cache/src/internal/contracts.d.ts
vendored
@ -35,4 +35,4 @@ export interface InternalCacheOptions {
|
||||
export interface ArchiveTool {
|
||||
path: string
|
||||
type: string
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user