-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Introduce [MSBuild]::StableStringHash overload(s) with alternative hashing #9519
Comments
This should not have been closed yet; 5af9301 mentioned this issue but did not implement the feature request. |
Why not just change the existing method rather than add an overload? Keeping it simple. Would it just cause one unnecessary builds on upgrade? |
hashtag we tried, @danmoseley. The change caused a category of problem that's new now that we have caching plugins. The cache used today for some internal Microsoft repos (like the VS repo for example) is populated on official builds from CloudBuild, which run on a recent stable MSBuild, so the caches have the old hash behavior burned in if relevant. When a new hash behavior is deployed to the cache clients (local dev machines), the cache stops functioning correctly. |
Let's not move the hashing utils to StringTools until the #9572 is resolved - as we'd broke the DevKit! |
Blocked by AB#1937630 |
Blocked By
#9572https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1937630
Context
#9387 introduced improved hashing for
[MSBuild]::StableStringHash
, that however broke internal functionality relying on the hash to be stable between versions (despite documented otherwise).Proposal
The easiest way around it is to keep the current property function untouched, but introduce a new overload taking an enum argument:
This way other hashes (like xxHash) can be introduced in the future
Related
Hash
task (as we contemplated usage of xxHash)The text was updated successfully, but these errors were encountered: