Open flcdrg opened 3 months ago
checksum.exe
can hash files that are larger than 2gb, see https://github.com/chocolatey/choco/issues
The warning about Error computing hash for
is from the file hashing built into Chocolatey CLI itself: https://github.com/chocolatey/choco/issues/747
I have a PR open to fix it: https://github.com/chocolatey/choco/pull/2714
The hashing taking way longer than alternative hashing methods would be an issue (although it probably would need to be benchmarked), which could be related tochecksum.exe
(or some aspect of how it is called).
Might be worth looking at the Get-FileHash
source at https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetHash.cs to see if there's tweaks you can adopt here.
Checklist
What You Are Seeing?
Package fails to validate or install because download is larger than 2GB
What is Expected?
Chocolatey should be able to cope with large files for calculating checksum/filehash
How Did You Get This To Happen?
Tried to install package with downloaded file larger than 2GB eg- https://community.chocolatey.org/packages/resharper-platform/241.0.20240528.180551
System Details
As per verifier environment
Installed Packages
Output Log