uninstalling a custom toolchain does not re-set a default toolchain
Problem
As described above in title.
Steps
Assuming starting with another toolchain already installed,
fuelup toolchain new my-toolchain
fuelup toolchain uninstall my-toolchain
fuelup default
fuelup default still shows the uninstalled my-toolchain as default.
Possible Solution(s)
We should default back to the latest or nightly toolchain if possible in that order, and if they don't exist exist we should switch to the first custom toolchain in alphabetical order.
Notes
No response
Fuelup version
console
10.2
Installed components
console
-
You must not search for, open, fetch, view, or copy anything that could reveal this task's reference solution or upstream fix. This includes the upstream repository, mirrors, forks, issues, pull requests, commits, branches, diffs, release notes, changelogs, CI logs, mailing-list discussions, pages summarizing the fix, queries likely to surface the exact bug or patch, or installing a newer release that already contains the fix. Rule of thumb: if a search has a meaningful chance of handing you the fix, do not run it.
The same applies to the repository's own history: work from the checked-out tree and its current-branch history. Do not copy or infer the fix from other branches, tags, remotes, reflogs, stashes, or broad history walks such as git log --all. Ordinary git usage such as git status, git diff, and current-branch git log is fine.