Fix tests
This commit is contained in:
+3
-1
@@ -119,7 +119,9 @@ export function getCacheFileName(compressionMethod: CompressionMethod): string {
|
||||
export async function isGnuTarInstalled(): Promise<boolean> {
|
||||
const gnuTar = `${process.env['windir']}\\Program Files\\Git\\usr\\bin\\tar.exe`
|
||||
const versionOutput = await getVersion('tar')
|
||||
return versionOutput.toLowerCase().includes('gnu tar') || fs.existsSync(gnuTar)
|
||||
return (
|
||||
versionOutput.toLowerCase().includes('gnu tar') || fs.existsSync(gnuTar)
|
||||
)
|
||||
}
|
||||
|
||||
export function assertDefined<T>(name: string, value?: T): T {
|
||||
|
||||
Vendored
+1
@@ -16,6 +16,7 @@ async function getTarPath(
|
||||
const systemTar = `${process.env['windir']}\\System32\\tar.exe`
|
||||
const gnuTar = `${process.env['windir']}\\Program Files\\Git\\usr\\bin\\tar.exe`
|
||||
if (existsSync(gnuTar)) {
|
||||
// Making GNUtar + zstd as default on windows
|
||||
args.push('--force-local')
|
||||
return gnuTar
|
||||
} else if (compressionMethod !== CompressionMethod.Gzip) {
|
||||
|
||||
Reference in New Issue
Block a user