Skip to content

Commit

Permalink
Add -P flag for tar creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Gross committed Apr 8, 2020
1 parent e537035 commit a4e3c3b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions __tests__/tar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ test("create tar", async () => {
"-cz",
"-f",
CacheFilename,
"-P",
"-C",
workspace,
"--files-from",
Expand Down
9 changes: 5 additions & 4 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2182,12 +2182,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const fs = __importStar(__webpack_require__(747));
const crypto = __importStar(__webpack_require__(417));
const http_client_1 = __webpack_require__(539);
const auth_1 = __webpack_require__(226);
const utils = __importStar(__webpack_require__(443));
const crypto = __importStar(__webpack_require__(417));
const fs = __importStar(__webpack_require__(747));
const constants_1 = __webpack_require__(694);
const utils = __importStar(__webpack_require__(443));
const versionSalt = "1.0";
function isSuccessStatusCode(statusCode) {
if (!statusCode) {
Expand Down Expand Up @@ -3185,8 +3185,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const io = __importStar(__webpack_require__(1));
const glob = __importStar(__webpack_require__(281));
const io = __importStar(__webpack_require__(1));
const fs = __importStar(__webpack_require__(747));
const path = __importStar(__webpack_require__(622));
const util = __importStar(__webpack_require__(669));
Expand Down Expand Up @@ -5016,6 +5016,7 @@ function createTar(archiveFolder, sourceDirectories) {
"-cz",
"-f",
constants_1.CacheFilename,
"-P",
"-C",
workingDirectory,
"--files-from",
Expand Down
9 changes: 5 additions & 4 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2182,12 +2182,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const fs = __importStar(__webpack_require__(747));
const crypto = __importStar(__webpack_require__(417));
const http_client_1 = __webpack_require__(539);
const auth_1 = __webpack_require__(226);
const utils = __importStar(__webpack_require__(443));
const crypto = __importStar(__webpack_require__(417));
const fs = __importStar(__webpack_require__(747));
const constants_1 = __webpack_require__(694);
const utils = __importStar(__webpack_require__(443));
const versionSalt = "1.0";
function isSuccessStatusCode(statusCode) {
if (!statusCode) {
Expand Down Expand Up @@ -3185,8 +3185,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const io = __importStar(__webpack_require__(1));
const glob = __importStar(__webpack_require__(281));
const io = __importStar(__webpack_require__(1));
const fs = __importStar(__webpack_require__(747));
const path = __importStar(__webpack_require__(622));
const util = __importStar(__webpack_require__(669));
Expand Down Expand Up @@ -4993,6 +4993,7 @@ function createTar(archiveFolder, sourceDirectories) {
"-cz",
"-f",
constants_1.CacheFilename,
"-P",
"-C",
workingDirectory,
"--files-from",
Expand Down
1 change: 1 addition & 0 deletions src/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export async function createTar(
"-cz",
"-f",
CacheFilename,
"-P",
"-C",
workingDirectory,
"--files-from",
Expand Down

0 comments on commit a4e3c3b

Please sign in to comment.