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

Tar extraction via default windows tar.exe hangs indefinitely in github action #21

Open
petarpetrovt opened this issue Sep 10, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@petarpetrovt
Copy link
Owner

Tar extraction via @actions/tool-cache on windows hangs indefinitely in github action.

// This uses `C:\Windows\System32\tar.exe`
await tool.extractTar(tarFilePath, extractedFilesPath);

The current temporary fix is to use Git's tar executable:

const tarExePath = "C:\\Program Files\\Git\\usr\\bin\\tar.exe";
await exec.exec(`"${tarExePath}"`, [`x`, `--force-local`, `-C`, `${extractedFilesPath}`, `-f`, `${tarFilePath}`]);
@petarpetrovt petarpetrovt added the bug Something isn't working label Sep 10, 2021
@petarpetrovt petarpetrovt added this to the future milestone Sep 10, 2021
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

No branches or pull requests

1 participant