Closed chtof closed 5 years ago
This is a known problem in chocolatey (which au uses for automatic checksums).
You need to disable automatic checksums and generate those checksums yourself (partly).
add the following funciton to the au update.ps1
file (make any necessary changes that you want).
function global:au_BeforeUpdate {
$Latest.ChecksumType32 = 'sha256' # Not necessary, but just my preference to add it
$Latest.Checksum32 = Get-RemoteChecksum $Latest.URL32 -Algorithm $Latest.ChecksumTyp32 # You can omit the algorithm, the function will use sha256 by default
}
then you need to change your call to update
at the end of the file, change it to update -ChecksumFor none
EDIT: Here is the issue for chocolatey https://github.com/chocolatey/choco/issues/1422
Besides that, if you embed files you don't even need this as Get-RemoteFiles
will calculate checksums. THat is what you should prefer nowdays, I almost never use automatic checksum because almost all packages I create are embedded.
[SOLVED] Thanks a lot for your help!
Hi,
I have this issue:
How can I handle this issue? Thanks in advance for your help.