cache key should not contain whitespaces
							parent
							
								
									755ae366fb
								
							
						
					
					
						commit
						5e53df432d
					
				|  | @ -621,6 +621,7 @@ const remote_client_logger_1 = __nccwpck_require__(28082); | |||
| class Caching { | ||||
|     static PushToCache(cacheFolder, sourceFolder, cacheKey) { | ||||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|             cacheKey = cacheKey.replace(' ', ''); | ||||
|             const startPath = process.cwd(); | ||||
|             try { | ||||
|                 if (!fs_1.default.existsSync(cacheFolder)) { | ||||
|  | @ -662,6 +663,7 @@ class Caching { | |||
|     } | ||||
|     static PullFromCache(cacheFolder, destinationFolder, cacheKey = ``) { | ||||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|             cacheKey = cacheKey.replace(' ', ''); | ||||
|             const startPath = process.cwd(); | ||||
|             remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`); | ||||
|             try { | ||||
|  |  | |||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -10,6 +10,7 @@ import { RemoteClientLogger } from './remote-client-logger'; | |||
| 
 | ||||
| export class Caching { | ||||
|   public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheKey: string) { | ||||
|     cacheKey = cacheKey.replace(' ', ''); | ||||
|     const startPath = process.cwd(); | ||||
|     try { | ||||
|       if (!fs.existsSync(cacheFolder)) { | ||||
|  | @ -55,6 +56,7 @@ export class Caching { | |||
|     process.chdir(`${startPath}`); | ||||
|   } | ||||
|   public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheKey: string = ``) { | ||||
|     cacheKey = cacheKey.replace(' ', ''); | ||||
|     const startPath = process.cwd(); | ||||
|     RemoteClientLogger.log(`Caching for ${path.basename(destinationFolder)}`); | ||||
|     try { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue