-
Notifications
You must be signed in to change notification settings - Fork 653
Open
Description
rushstack/heft-plugins/heft-lint-plugin/src/LinterBase.ts
Lines 86 to 95 in 3f7b8f9
| const relativePaths: Map<string, string> = new Map(); | |
| const fileHash: Hash = createHash('md5'); | |
| for (const file of options.typeScriptFilenames) { | |
| // Need to use relative paths to ensure portability. | |
| const relative: string = Path.convertToSlashes(path.relative(commonDirectory, file)); | |
| relativePaths.set(file, relative); | |
| fileHash.update(relative); | |
| } | |
| const hashSuffix: string = fileHash.digest('base64').replace(/\+/g, '-').replace(/\//g, '_').slice(0, 8); |
Update the hash calculation for the linter cache filename to only be a hash of the project-relative path of the tsconfig file that corresponds to the program instance, rather than a hash of the list of file names.
The hash of the list of filenames may be placed inside of the cache file instead as a check to verify that it was run with the same files.
Copilot
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Low priority