Closes bd-149 The version mismatch warning was using string comparison (Version < dbVersion) which incorrectly compared v0.9.10 < v0.9.9 as true (lexicographically '1' < '9'). Now uses golang.org/x/mod/semver.Compare for proper semantic versioning: - v0.9.10 > v0.9.9 correctly returns 1 (binary is NEWER) - v0.9.9 < v0.9.10 correctly returns -1 (binary is OUTDATED) Amp-Thread-ID: https://ampcode.com/threads/T-4e1ac6f1-7465-442a-a385-adaa98b539ad Co-authored-by: Amp <amp@ampcode.com>
7.7 KiB
7.7 KiB