05-04-2024 04:57 AM - edited 05-04-2024 07:34 AM
string md5Win64Actual = GetFileChecksum(Path.GetFullPath(PluginRelPathWin64));
string md5AndroidActual = GetFileChecksum(Path.GetFullPath(PluginRelPathAndroid));
private static string GetFileChecksum(string filePath)
{
using var md5 = new MD5CryptoServiceProvider();
byte[] buffer = md5.ComputeHash(File.ReadAllBytes(filePath));
return string.Join(null, buffer.Select(b => b.ToString("x2")));
}
private static string GetFileChecksum(string filePath)
{
using var md5 = new MD5CryptoServiceProvider();
byte[] buffer = md5.ComputeHash(File.ReadAllBytes(filePath));
byte[] pathBuffer = md5.ComputeHash(Encoding.UTF8.GetBytes(filePath));
return string.Join(null, buffer.Select(b => b.ToString("x2"))) + string.Join(null, pathBuffer.Select(b => b.ToString("x2")));
}
05-28-2024 05:00 PM
The pathBuffer should be at least using the relative path to the Unity project / package. People working on different workspace root folders will always get a different hash because of this change.
05-29-2024 01:06 PM
Still a problem in v65. I really really hope they change this in v66.
07-01-2024 04:38 PM
Has anything been done about this? Everyone on our team has their project in a different location so we're all having to deal with this change frequently. How are others dealing with it? Is there any way to escalate the issue?
07-01-2024 08:25 PM
We are dealing with by always pressing "Not now" when the dialog prompts us to restart the Unity Engine.
08-28-2024 09:00 PM - edited 08-29-2024 07:45 PM
Still bugged in v68.
I can imagine this bug is affecting most teams with more than one dev machine.
What is even the rationale behind putting a full path into those hashes?
Also, is this the proper place to report bugs? I couldn't find any formal way to report this. Is this a joke?
----
Just in case any dev actually reads this thread and tries to fix this:
If you decide to put relative paths instead of full paths into the hashes, please also handle the different path separators for different OSs.
09-19-2024 07:24 AM
This is obviously broken. Can anything be done about it? Does anyone from Meta read these posts?
10-03-2024 02:04 AM
I wonder how is it possible that this isn't causing issues internally at Meta? Maybe all devs at Meta are mandated to keep the same folder structure for their projects or something, but I'd imagine it would still come up when someone makes another copy of the project.
Please fix this issue, it's insane it hasn't been fixed for so long.
10-14-2024 12:44 AM
Same in v69, I can't image how Meta team can endure this issue and restart their editor once and once again for so long.