Skip to content

v1.0.4

Choose a tag to compare

@mwtrigg mwtrigg released this 17 Jul 05:53
· 20 commits to main since this release

Fix: nugctl upgrade could fail on Windows with a file-lock error during the self-replace step. Windows won't let you overwrite a file mapped into a running process, and antivirus real-time scanning can transiently lock the freshly-downloaded binary.

On Windows, the running exe is now moved aside first (renaming an open file is allowed even though overwriting one isn't), the new binary is installed, and the old one is restored automatically if that fails - so a failed upgrade never leaves you without a working binary. Each rename retries briefly to ride out a transient AV lock.

Verify downloads against checksums.txt (sha256).