Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xpol opened this issue Oct 28, 2019 · 5 comments
Closed

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

xpol opened this issue Oct 28, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@xpol
Copy link

xpol commented Oct 28, 2019

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.

@xpol xpol added the bug Something isn't working label Oct 28, 2019
@JJ
Copy link

JJ commented Nov 28, 2019

You are trying to access unit d: Is that automatically created or is it a part of your action? The error says it's not finding it.

@ericsciple
Copy link
Contributor

discussing a fix on pr #165

@ericsciple
Copy link
Contributor

ericsciple commented Dec 16, 2019

@xpol also curious about the scenario. Many tools offer multiple archive formats for users on different platforms (zip or 7z for Windows)

@ericsciple
Copy link
Contributor

ericsciple commented Dec 16, 2019

And the tar command doesnt exist on older versions of Windows (which are supported by self hosted runners)

@ericsciple
Copy link
Contributor

fixed with #264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants