myna 0.15.0: myna update
myna 0.15.0: myna update I typed myna update today and got Unknown command "update". Run: myna help . That is a fair answer and a bad one. The installer already knew how to put a myna binary on a machine correctly, so there was no reason the binary could not do the same thing to itself. myna update # replace this binary with the newest release myna update --check # only say whether one is waiting…
The myna update tool reached version 0.15.0 with several notable improvements. An in-place self update was introduced, allowing the binary to replace itself with a newer release. This update process involves comparing versions numerically to ensure correct installation order. It also selects an appropriate asset based on the machine's specifications, avoiding compatibility issues.
The download is verified against the published SHA256SUMS before installation. The update is executed by a background daemon, staged in the destination directory, and renamed over the target file to prevent issues like truncation or atomicity. The --check flag can be used to report and exit when an update is waiting. Users can also specify a specific release using the --version flag. The tool remains compatible with various operating systems, including Linux, macOS, and Windows.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.