Skip to content

Commit

Permalink
hide compare output hash
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Nov 6, 2023
1 parent 78d5448 commit dbc9d7c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/proto-types/proto-types-gen/scripts/proto-gen.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ function setOutputHash(root, hash) {
$.verbose = true;

// When executed in CI, the proto output should not be different with ones built locally.
let lastOutputHash = undefined;
if (process.env.CI === 'true') {
console.log('You are ci runner');
lastOutputHash = getOutputHash(packageRoot);
console.log('Expected output hash is', lastOutputHash);
}
// let lastOutputHash = undefined;
// if (process.env.CI === 'true') {
// console.log('You are ci runner');
// lastOutputHash = getOutputHash(packageRoot);
// console.log('Expected output hash is', lastOutputHash);
// }

const protoTsBinPath = (() => {
try {
Expand Down Expand Up @@ -141,7 +141,7 @@ function setOutputHash(root, hash) {
// throw new Error('Output is different');
// }

setOutputHash(packageRoot, outputHash);
// setOutputHash(packageRoot, outputHash);
} catch (e) {
console.log('🚀 ~ file: proto-gen.mjs:146 ~ e:', e);
process.exit(1);
Expand Down

0 comments on commit dbc9d7c

Please sign in to comment.