3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-23 03:45:31 +00:00

Add Eric's e2e test change to get more coverage

This commit is contained in:
Aiqiao Yan 2020-05-12 16:36:56 -04:00
parent 0232e3178d
commit 3f662ca624
7 changed files with 143 additions and 20 deletions

View file

@ -3000,6 +3000,7 @@ const exec_1 = __webpack_require__(986);
const io = __importStar(__webpack_require__(1));
const fs_1 = __webpack_require__(747);
const path = __importStar(__webpack_require__(622));
const tar = __importStar(__webpack_require__(943));
function isGnuTar() {
return __awaiter(this, void 0, void 0, function* () {
core.debug("Checking tar --version");
@ -3026,7 +3027,7 @@ function getTarPath(args) {
if (fs_1.existsSync(systemTar)) {
return systemTar;
}
else if (yield isGnuTar()) {
else if (yield tar.isGnuTar()) {
args.push("--force-local");
}
}

3
dist/save/index.js vendored
View file

@ -2981,6 +2981,7 @@ const exec_1 = __webpack_require__(986);
const io = __importStar(__webpack_require__(1));
const fs_1 = __webpack_require__(747);
const path = __importStar(__webpack_require__(622));
const tar = __importStar(__webpack_require__(943));
function isGnuTar() {
return __awaiter(this, void 0, void 0, function* () {
core.debug("Checking tar --version");
@ -3007,7 +3008,7 @@ function getTarPath(args) {
if (fs_1.existsSync(systemTar)) {
return systemTar;
}
else if (yield isGnuTar()) {
else if (yield tar.isGnuTar()) {
args.push("--force-local");
}
}