Myna 0.15.0 adds self-update command with checksum verification and safe staging
The myna CLI tool has released version 0.15.0, introducing a built-in 'myna update' command that allows the binary to update itself in place. The update process performs numerical version comparison to avoid ordering errors, selects the correct architecture-specific build before downloading, and verifies the file against published SHA256 checksums before installation. To ensure safety, the new binary is staged in the destination directory and atomically renamed over the existing file, leaving the original untouched if a download fails. A '--check' flag exits with code 1 when an update is available, enabling scriptable cron-based checks, while '--version' allows installing any specific release in either direction. Users on version 0.14.0 or earlier must still use the curl installer for the initial upgrade to 0.15.0, after which 'myna update' becomes the standard upgrade path.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in