1
0
Fork 0

Use posix archive format (#533)

* Use posix archive format

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* Update package.json and RELEASES.md

Signed-off-by: Sora Morimoto <sora@morimoto.io>
pull/551/head
Sora Morimoto 2020-08-06 00:17:23 +09:00 committed by GitHub
parent 6c5508d1fb
commit 9ad01e4fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 3 deletions

View File

@ -18,3 +18,6 @@
### 1.0.1
- Fix bug in downloading large files (> 2 GBs) with the Azure SDK
### 1.0.2
- Use posix archive format to add support for some tools

View File

@ -135,6 +135,7 @@ test('zstd create tar', async () => {
expect(execMock).toHaveBeenCalledWith(
`"${tarPath}"`,
[
'--posix',
'--use-compress-program',
'zstd -T0 --long=30',
'-cf',
@ -170,6 +171,7 @@ test('gzip create tar', async () => {
expect(execMock).toHaveBeenCalledWith(
`"${tarPath}"`,
[
'--posix',
'-z',
'-cf',
IS_WINDOWS ? CacheFilename.Gzip.replace(/\\/g, '/') : CacheFilename.Gzip,

2
packages/cache/package-lock.json generated vendored
View File

@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "1.0.0",
"version": "1.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "1.0.1",
"version": "1.0.2",
"preview": true,
"description": "Actions cache lib",
"keywords": [

View File

@ -101,6 +101,7 @@ export async function createTar(
}
}
const args = [
'--posix',
...getCompressionProgram(),
'-cf',
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),