Describe the bug
When on a version like 1.2.10, cannot update to 1.2.1.
To Reproduce
Steps to reproduce the behavior:
- Have an CLI version like 1.2.10-gitsha installed
- Run the command
update --version 1.2.1
- An error results:
<cli name>: Updating CLI... already on version 1.2.10-gitsha
Expected behavior
Update runs to version 1.2.1
Screenshots
<cli name>: Updating CLI... already on version <current version>
Environment (please complete the following information):
- OS & version: macOS 26.6.1
- Shell/terminal & version zsh 5.9 (arm64-apple-darwin25.0)
Additional context
I think this is due to all the .startsWith(version) happening in the implementation, so maybe this could affect all stringwise prefixes, including prerelease or other channel versions like 1.2.0-alpha to 1.2.0?
Describe the bug
When on a version like 1.2.10, cannot update to 1.2.1.
To Reproduce
Steps to reproduce the behavior:
update --version 1.2.1<cli name>: Updating CLI... already on version 1.2.10-gitshaExpected behavior
Update runs to version 1.2.1
Screenshots
<cli name>: Updating CLI... already on version <current version>Environment (please complete the following information):
Additional context
I think this is due to all the
.startsWith(version)happening in the implementation, so maybe this could affect all stringwise prefixes, including prerelease or other channel versions like1.2.0-alphato1.2.0?