Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change Version hash to be auto-generated and not based on content #8887

Merged
merged 1 commit into from
May 14, 2024

Conversation

davidfirst
Copy link
Member

In the legacy it was completely based on hashing part of the content. Since Harmony, only tag (not snap) used this calculation and only for the first time. Once generated, the hash was saved as part of the object and was used purely by the hash prop and not by the calculation.

This PR completes the transition by aligning tag and snap and always auto-generating the hash by a random UUID.

(the reason this was done now is because I have noticed a very rare occurrence when an e2e-test was creating two components with the exact same files and their tag hashes were identical. It's rare because part of the hash calculation based on the "log.date" which changes every second).

@davidfirst davidfirst merged commit 69512fc into master May 14, 2024
11 checks passed
@davidfirst davidfirst deleted the versoin-generated-hash branch May 14, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants