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

use tar in pure nodejs tar implemented for tool-cache #549

Open
axetroy opened this issue Aug 7, 2020 · 0 comments
Open

use tar in pure nodejs tar implemented for tool-cache #549

axetroy opened this issue Aug 7, 2020 · 0 comments
Labels
bug Something isn't working tool-cache

Comments

@axetroy
Copy link

axetroy commented Aug 7, 2020

The current caching tool uses the executable file tar, but not all CI containers have the tar command, especially self-hosted containers. ref denolib/setup-deno#51

It will make CI fail.

await exec('tar --version', [], {
ignoreReturnCode: true,
silent: true,
listeners: {
stdout: (data: Buffer) => (versionOutput += data.toString()),
stderr: (data: Buffer) => (versionOutput += data.toString())
}
})

args.push('-C', destArg, '-f', fileArg)
await exec(`tar`, args)
return dest

@axetroy axetroy added the bug Something isn't working label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tool-cache
Projects
None yet
Development

No branches or pull requests

2 participants