matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Unchecked outFile.Close() error in runUpdateCLI

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug

In runUpdateCLI() (main.go:3310), after writing the downloaded asset to disk with io.Copy, outFile.Close() is called without checking the returned error. If Close() fails (e.g., disk full), the written data may be incomplete but the update proceeds.

To reproduce

  1. Trigger an update with a nearly-full disk
  2. The file may be incomplete but the update continues

Expected behavior

outFile.Close() error should be checked and returned if non-nil.

andrinoff avatar Apr 24 '26 20:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 26 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 09 '26 06:06 floatpanebot