mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 05:19:10 +08:00 
			
		
		
		
	* Remove cache checksum debug - close #24 * Remove cache checksum debug on save * Fix formatting
This commit is contained in:
		@@ -94,13 +94,6 @@ async function run() {
 | 
			
		||||
            core.info(
 | 
			
		||||
                `Cache restored from key:${cacheEntry && cacheEntry.cacheKey}`
 | 
			
		||||
            );
 | 
			
		||||
 | 
			
		||||
            try {
 | 
			
		||||
                core.info("Cache Checksum:");
 | 
			
		||||
                await exec(`md5sum`, [`${archivePath}`]);
 | 
			
		||||
            } catch (error) {
 | 
			
		||||
                core.debug(`Failed to checkum with ${error}`);
 | 
			
		||||
            }
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
            core.warning(error.message);
 | 
			
		||||
            utils.setCacheHitOutput(false);
 | 
			
		||||
 
 | 
			
		||||
@@ -66,13 +66,6 @@ async function run() {
 | 
			
		||||
 | 
			
		||||
        const stream = fs.createReadStream(archivePath);
 | 
			
		||||
        await cacheHttpClient.saveCache(stream, primaryKey);
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            core.info("Cache Checksum:");
 | 
			
		||||
            await exec(`md5sum`, [`${archivePath}`]);
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
            core.debug(`Failed to checkum with ${error}`);
 | 
			
		||||
        }
 | 
			
		||||
    } catch (error) {
 | 
			
		||||
        core.warning(error.message);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user