Skip to content

Extract tar.gz on windows-latest failed. #194

Description

@xpol

Describe the bug
The follow code:

const tc = require("@actions/tool-cache")
tc.extractTar(tarball, SOURCE_DIRECTORY)

Fails to run under windows-latest (other windows version not tested).

"C:\Program Files\Git\usr\bin\tar.exe" xz -C d:\a\install-lua\install-lua\.source\ -f d:\a\_temp\5e8814d7-8526-46bd-bd88-ed84e58259a1
tar (child): Cannot connect to d: resolve failed

gzip: stdin: unexpected end of file
/usr/bin/tar: Child returned status 128
/usr/bin/tar: Error is not recoverable: exiting now
##[error]Failed to install Lua: Error: The process 'C:\Program Files\Git\usr\bin\tar.exe' failed with exit code 2
##[error]Node run failed with exit code 1

To Reproduce
Steps to reproduce the behavior:

  1. Use extractTar in actions scripts.
  2. Run the action on windows latest

Expected behavior

Show extractTar correctly on windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions