mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-04 04:03:21 +08:00
Fix tests
This commit is contained in:
2
packages/cache/src/internal/constants.ts
vendored
2
packages/cache/src/internal/constants.ts
vendored
@@ -23,4 +23,4 @@ export const DefaultRetryDelay = 5000
|
||||
export const SocketTimeout = 5000
|
||||
|
||||
// The default path of GNUtar on hosted Windows runners
|
||||
export const GnuTarPathOnWindows = 'C:\\Program Files\\Git\\usr\\bin\\tar.exe'
|
||||
export const GnuTarPathOnWindows = 'C:\\Program Files\\Git\\usr\\bin\\tar.exe'
|
||||
|
||||
5
packages/cache/src/internal/tar.ts
vendored
5
packages/cache/src/internal/tar.ts
vendored
@@ -7,10 +7,7 @@ import {CompressionMethod} from './constants'
|
||||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
|
||||
async function getTarPath(
|
||||
args: string[],
|
||||
compressionMethod: CompressionMethod
|
||||
): Promise<string> {
|
||||
async function getTarPath(args: string[]): Promise<string> {
|
||||
let tarPath = await io.which('tar', true)
|
||||
switch (process.platform) {
|
||||
case 'win32': {
|
||||
|
||||
Reference in New Issue
Block a user