From 419d0912eaf63802cf17e1ee54e8a2d34bcbb6c7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 16:02:15 +0100 Subject: [PATCH] build(deps): bump @actions/cache from 3.1.2 to 3.1.3 (#672) Co-authored-by: Fernandez Ludovic --- dist/post_run/index.js | 7 ++++--- dist/run/index.js | 7 ++++--- package-lock.json | 14 +++++++------- package.json | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 0b35b2b3ab..b3f81b6c55 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -1107,14 +1107,12 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); const exec_1 = __nccwpck_require__(1514); -const core_1 = __nccwpck_require__(2186); const io = __importStar(__nccwpck_require__(7436)); const fs_1 = __nccwpck_require__(7147); const path = __importStar(__nccwpck_require__(1017)); const utils = __importStar(__nccwpck_require__(1518)); const constants_1 = __nccwpck_require__(8840); const IS_WINDOWS = process.platform === 'win32'; -core_1.exportVariable('MSYS', 'winsymlinks:nativestrict'); // Returns tar path and type: BSD or GNU function getTarPath() { return __awaiter(this, void 0, void 0, function* () { @@ -1304,7 +1302,10 @@ function execCommands(commands, cwd) { return __awaiter(this, void 0, void 0, function* () { for (const command of commands) { try { - yield exec_1.exec(command, undefined, { cwd }); + yield exec_1.exec(command, undefined, { + cwd, + env: Object.assign(Object.assign({}, process.env), { MSYS: 'winsymlinks:nativestrict' }) + }); } catch (error) { throw new Error(`${command.split(' ')[0]} failed with error: ${error === null || error === void 0 ? void 0 : error.message}`); diff --git a/dist/run/index.js b/dist/run/index.js index 29fda28ff7..b7a245f13a 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -1107,14 +1107,12 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); const exec_1 = __nccwpck_require__(1514); -const core_1 = __nccwpck_require__(2186); const io = __importStar(__nccwpck_require__(7436)); const fs_1 = __nccwpck_require__(7147); const path = __importStar(__nccwpck_require__(1017)); const utils = __importStar(__nccwpck_require__(1518)); const constants_1 = __nccwpck_require__(8840); const IS_WINDOWS = process.platform === 'win32'; -core_1.exportVariable('MSYS', 'winsymlinks:nativestrict'); // Returns tar path and type: BSD or GNU function getTarPath() { return __awaiter(this, void 0, void 0, function* () { @@ -1304,7 +1302,10 @@ function execCommands(commands, cwd) { return __awaiter(this, void 0, void 0, function* () { for (const command of commands) { try { - yield exec_1.exec(command, undefined, { cwd }); + yield exec_1.exec(command, undefined, { + cwd, + env: Object.assign(Object.assign({}, process.env), { MSYS: 'winsymlinks:nativestrict' }) + }); } catch (error) { throw new Error(`${command.split(' ')[0]} failed with error: ${error === null || error === void 0 ? void 0 : error.message}`); diff --git a/package-lock.json b/package-lock.json index 98629d94a9..9cdbff0da0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.1.0", "license": "MIT", "dependencies": { - "@actions/cache": "^3.1.2", + "@actions/cache": "^3.1.3", "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", "@actions/github": "^5.1.1", @@ -34,9 +34,9 @@ } }, "node_modules/@actions/cache": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.1.2.tgz", - "integrity": "sha512-3XeKcXIonfIbqvW7gPm/VLOhv1RHQ1dtTgSBCH6OUhCgSTii9bEVgu0PIms7UbLnXeMCKFzECfpbud8fJEvBbQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.1.3.tgz", + "integrity": "sha512-5YbATJUS6nVs9EkpK7JaliC3G5koKdJT99NLreL0gJlznudzZzXGNIheW5+HUT9C2DBvubOxYIyfX4v2UpZWrA==", "dependencies": { "@actions/core": "^1.10.0", "@actions/exec": "^1.0.1", @@ -3354,9 +3354,9 @@ }, "dependencies": { "@actions/cache": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.1.2.tgz", - "integrity": "sha512-3XeKcXIonfIbqvW7gPm/VLOhv1RHQ1dtTgSBCH6OUhCgSTii9bEVgu0PIms7UbLnXeMCKFzECfpbud8fJEvBbQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.1.3.tgz", + "integrity": "sha512-5YbATJUS6nVs9EkpK7JaliC3G5koKdJT99NLreL0gJlznudzZzXGNIheW5+HUT9C2DBvubOxYIyfX4v2UpZWrA==", "requires": { "@actions/core": "^1.10.0", "@actions/exec": "^1.0.1", diff --git a/package.json b/package.json index 6f1a1f4a41..3603f2f3f6 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "author": "golangci", "license": "MIT", "dependencies": { - "@actions/cache": "^3.1.2", + "@actions/cache": "^3.1.3", "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", "@actions/github": "^5.1.1",