diff --git a/packages/cache/RELEASES.md b/packages/cache/RELEASES.md index dce5009ba4..5136919434 100644 --- a/packages/cache/RELEASES.md +++ b/packages/cache/RELEASES.md @@ -17,4 +17,7 @@ - `retry`, `retryTypedResponse`, and `retryHttpClientResponse` moved from `cacheHttpClient` to `requestUtils` ### 1.0.1 -- Fix bug in downloading large files (> 2 GBs) with the Azure SDK \ No newline at end of file +- 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 diff --git a/packages/cache/__tests__/tar.test.ts b/packages/cache/__tests__/tar.test.ts index ecb6799bc5..b891d85b66 100644 --- a/packages/cache/__tests__/tar.test.ts +++ b/packages/cache/__tests__/tar.test.ts @@ -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, diff --git a/packages/cache/package-lock.json b/packages/cache/package-lock.json index 647bfc9281..2755a274b1 100644 --- a/packages/cache/package-lock.json +++ b/packages/cache/package-lock.json @@ -1,6 +1,6 @@ { "name": "@actions/cache", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/cache/package.json b/packages/cache/package.json index c41de866a4..52c8c3bbd1 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@actions/cache", - "version": "1.0.1", + "version": "1.0.2", "preview": true, "description": "Actions cache lib", "keywords": [ diff --git a/packages/cache/src/internal/tar.ts b/packages/cache/src/internal/tar.ts index 7f836b83d3..680433e741 100644 --- a/packages/cache/src/internal/tar.ts +++ b/packages/cache/src/internal/tar.ts @@ -101,6 +101,7 @@ export async function createTar( } } const args = [ + '--posix', ...getCompressionProgram(), '-cf', cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),