cache key should not contain whitespaces
							parent
							
								
									755ae366fb
								
							
						
					
					
						commit
						5e53df432d
					
				|  | @ -621,6 +621,7 @@ const remote_client_logger_1 = __nccwpck_require__(28082); | ||||||
| class Caching { | class Caching { | ||||||
|     static PushToCache(cacheFolder, sourceFolder, cacheKey) { |     static PushToCache(cacheFolder, sourceFolder, cacheKey) { | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|  |             cacheKey = cacheKey.replace(' ', ''); | ||||||
|             const startPath = process.cwd(); |             const startPath = process.cwd(); | ||||||
|             try { |             try { | ||||||
|                 if (!fs_1.default.existsSync(cacheFolder)) { |                 if (!fs_1.default.existsSync(cacheFolder)) { | ||||||
|  | @ -662,6 +663,7 @@ class Caching { | ||||||
|     } |     } | ||||||
|     static PullFromCache(cacheFolder, destinationFolder, cacheKey = ``) { |     static PullFromCache(cacheFolder, destinationFolder, cacheKey = ``) { | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|  |             cacheKey = cacheKey.replace(' ', ''); | ||||||
|             const startPath = process.cwd(); |             const startPath = process.cwd(); | ||||||
|             remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`); |             remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`); | ||||||
|             try { |             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 { | export class Caching { | ||||||
|   public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheKey: string) { |   public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheKey: string) { | ||||||
|  |     cacheKey = cacheKey.replace(' ', ''); | ||||||
|     const startPath = process.cwd(); |     const startPath = process.cwd(); | ||||||
|     try { |     try { | ||||||
|       if (!fs.existsSync(cacheFolder)) { |       if (!fs.existsSync(cacheFolder)) { | ||||||
|  | @ -55,6 +56,7 @@ export class Caching { | ||||||
|     process.chdir(`${startPath}`); |     process.chdir(`${startPath}`); | ||||||
|   } |   } | ||||||
|   public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheKey: string = ``) { |   public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheKey: string = ``) { | ||||||
|  |     cacheKey = cacheKey.replace(' ', ''); | ||||||
|     const startPath = process.cwd(); |     const startPath = process.cwd(); | ||||||
|     RemoteClientLogger.log(`Caching for ${path.basename(destinationFolder)}`); |     RemoteClientLogger.log(`Caching for ${path.basename(destinationFolder)}`); | ||||||
|     try { |     try { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue