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
|
@ -17,4 +17,7 @@
|
||||||
- `retry`, `retryTypedResponse`, and `retryHttpClientResponse` moved from `cacheHttpClient` to `requestUtils`
|
- `retry`, `retryTypedResponse`, and `retryHttpClientResponse` moved from `cacheHttpClient` to `requestUtils`
|
||||||
|
|
||||||
### 1.0.1
|
### 1.0.1
|
||||||
- Fix bug in downloading large files (> 2 GBs) with the Azure SDK
|
- 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(
|
expect(execMock).toHaveBeenCalledWith(
|
||||||
`"${tarPath}"`,
|
`"${tarPath}"`,
|
||||||
[
|
[
|
||||||
|
'--posix',
|
||||||
'--use-compress-program',
|
'--use-compress-program',
|
||||||
'zstd -T0 --long=30',
|
'zstd -T0 --long=30',
|
||||||
'-cf',
|
'-cf',
|
||||||
|
@ -170,6 +171,7 @@ test('gzip create tar', async () => {
|
||||||
expect(execMock).toHaveBeenCalledWith(
|
expect(execMock).toHaveBeenCalledWith(
|
||||||
`"${tarPath}"`,
|
`"${tarPath}"`,
|
||||||
[
|
[
|
||||||
|
'--posix',
|
||||||
'-z',
|
'-z',
|
||||||
'-cf',
|
'-cf',
|
||||||
IS_WINDOWS ? CacheFilename.Gzip.replace(/\\/g, '/') : CacheFilename.Gzip,
|
IS_WINDOWS ? CacheFilename.Gzip.replace(/\\/g, '/') : CacheFilename.Gzip,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@actions/cache",
|
"name": "@actions/cache",
|
||||||
"version": "1.0.0",
|
"version": "1.0.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@actions/cache",
|
"name": "@actions/cache",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"description": "Actions cache lib",
|
"description": "Actions cache lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -101,6 +101,7 @@ export async function createTar(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const args = [
|
const args = [
|
||||||
|
'--posix',
|
||||||
...getCompressionProgram(),
|
...getCompressionProgram(),
|
||||||
'-cf',
|
'-cf',
|
||||||
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||||
|
|
Loading…
Reference in New Issue