Skip to content

Commit 6cb1b77

Browse files
committed
fixup! fix(bazel/integration): support tracking sizes for file paths that contain output hashes in them
1 parent b621fc3 commit 6cb1b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bazel/integration/test_runner/size-tracking.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ export class SizeTracker {
124124
}
125125

126126
/**
127-
* File the provided file, replacing has indicator if necessary for discovery, returns null if
127+
* Find the provided file, replacing hash indicator if necessary for discovery, returns null if
128128
* the file cannot be found.
129129
*/
130130
private findFile(filePath: string): string | null {
131131
if (existsSync(filePath)) {
132132
return filePath;
133133
}
134-
const filePathPattern = filePath.replace(/\[[hH][aA][sS][hH]\]/, '*');
134+
const filePathPattern = filePath.replace('[hash]', '*');
135135
const matchedFiles = globSync(filePathPattern, {onlyFiles: true});
136136
if (matchedFiles.length === 1) {
137137
return matchedFiles[0];

0 commit comments

Comments
 (0)