mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 13:29:10 +08:00 
			
		
		
		
	Add Eric's e2e test change to get more coverage
This commit is contained in:
		
							
								
								
									
										3
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -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
									
									
								
							
							
						
						
									
										3
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -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");
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user