-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Version
3.3.0
Explanation
I have found two different files that has the same hash value on following lines:
component-compiler-utils/lib/parse.ts
Lines 55 to 57 in 27e4fa3
const cacheKey = hash( | |
filename + source + JSON.stringify(compilerParseOptions) | |
) |
As a result, parse
returns wrong cache for these files, which can cause builds to fail randomly or produce unexpected results. As mentioned in bevacqua/hash-sum#4, hash-sum
algorithm is not suitable for content hashing. Unfortunately, I cannot share these private files here, but this issue may arise in projects with more than 10,000 files.
Would it be possible to switch to a more promising hash function, such as xxhash
?
Related issue
lambdalisue, tennashi and aster-mnch
Metadata
Metadata
Assignees
Labels
No labels