build: generate deps hash quietly (#42476)
This commit is contained in:
		
					parent
					
						
							
								a4f201a5f3
							
						
					
				
			
			
				commit
				
					
						1e219e457b
					
				
			
		
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -36,12 +36,10 @@ addAllFiles(path.resolve(__dirname, '../patches'));
 | 
				
			||||||
// Create Hash
 | 
					// Create Hash
 | 
				
			||||||
const hasher = crypto.createHash('SHA256');
 | 
					const hasher = crypto.createHash('SHA256');
 | 
				
			||||||
const addToHashAndLog = (s) => {
 | 
					const addToHashAndLog = (s) => {
 | 
				
			||||||
  console.log('Hashing:', s);
 | 
					 | 
				
			||||||
  return hasher.update(s);
 | 
					  return hasher.update(s);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
addToHashAndLog(`HASH_VERSION:${HASH_VERSIONS[process.platform] || FALLBACK_HASH_VERSION}`);
 | 
					addToHashAndLog(`HASH_VERSION:${HASH_VERSIONS[process.platform] || FALLBACK_HASH_VERSION}`);
 | 
				
			||||||
for (const file of filesToHash) {
 | 
					for (const file of filesToHash) {
 | 
				
			||||||
  console.log('Hashing Content:', file, crypto.createHash('SHA256').update(fs.readFileSync(file)).digest('hex'));
 | 
					 | 
				
			||||||
  hasher.update(fs.readFileSync(file));
 | 
					  hasher.update(fs.readFileSync(file));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue