Repository navigation
fix(cli): install the latest CLI when the requested release does not exist - #10180
Conversation
…exist Desktop 2.0.3, 2.0.6 and 2.0.7 have no matching CLI release, so Set up over SSH from those versions stopped on a 404. The installer now warns and installs cli-latest instead.
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
hosts add(Set up over SSH) asks the installer for the CLI release that matches the local CLI version. Desktop 2.0.3, 2.0.6 and 2.0.7 have nocli-vrelease (those Release CLI runs were cancelled), so setup from those versions stops on a 404.Change
When the requested release has no tarball,
install.shwarns and installscli-latest. A failure oncli-lateststill stops with an error. Released desktop builds fetch this script from the marketing site, so they get the fix without an update.Tested
cli-v2.0.6falls back and installs 2.0.11;cli-v2.0.11andlatestinstall as before.cli-v2.0.6falls back and installs 2.0.11.Summary by cubic
Fixes
hosts add(Set up over SSH) failing with a 404 for desktop versions that have no matching CLI release. Desktop 2.0.3, 2.0.6, and 2.0.7 have nocli-vrelease. The installer now warns and falls back to installingcli-latest; a failure oncli-lateststill stops with an error. Released desktop builds fetch this script from the marketing site, so they get the fix without an update.Written for commit 6d43cf0. Summary will update on new commits.
Summary by CodeRabbit