Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/tool-cache/src/tool-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ export async function extractTar(
}

dest = dest || (await _createExtractFolder(dest))
if (IS_WINDOWS) {
// For some reason, GNU Tar on Windows expects paths to be slash-separated even though this is not the standard Windows path delimiter
dest = dest.replace(/\\/g, '/')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I proposed an alternate solution for #165 which will eliminate the need for this.

Let's close on the other PR first before proceeding with this PR.

}
const tarPath: string = await io.which('tar', true)
await exec(`"${tarPath}"`, [flags, '-C', dest, '-f', file])

Expand Down