Corrupted .chocolatey
files can lead to cryptic warning and error messages
#3597
Labels
.chocolatey
files can lead to cryptic warning and error messages
#3597
Checklist
What You Are Seeing?
When there is a corrupted file in the
.chocolatey
directory, the warnings and errors don't always portray where the issue is, or what the cause may be.What is Expected?
Warnings and errors should provide actionable information (ie: identify the file that's the issue).
How Did You Get This To Happen?
For the purposes of this, I'll use the
glab
package. The steps below reproduce the issue reported in Discord, but other changes to the files result in other warnings that are also unhelpful.choco install glab -y
)NoGPU
portable version (there is a currently outdated Chocolatey package for this, but it does not include the NoGPU version).C:\ProgramData\Chocolatey\.chocolatey\glab.1.51.0\
, open them in imhex0x00
.choco info glab --local-only
System Details
Installed Packages
Output Log
https://gist.github.com/corbob/411e83ae075bb25c109c8c504c77823a
Additional Context
In my testing, these corrupted files don't seem to be blocking things, but there maybe some upgrade, install, uninstall commands where they may file. The
.arguments
file for sure will be a terminating error on an upgrade where remembered arguments are used.The text was updated successfully, but these errors were encountered: