mirror of https://github.com/actions/toolkit
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
parent
6c5508d1fb
commit
9ad01e4fd3
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@actions/cache",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@actions/cache",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"preview": true,
|
||||
"description": "Actions cache lib",
|
||||
"keywords": [
|
||||
|
|
|
@ -101,6 +101,7 @@ export async function createTar(
|
|||
}
|
||||
}
|
||||
const args = [
|
||||
'--posix',
|
||||
...getCompressionProgram(),
|
||||
'-cf',
|
||||
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||
|
|
Loading…
Reference in New Issue