asdf-community / asdf-community/asdf-flutter
Install error results in inconsistent state
- Dominant language
- Shell
- Stars
- 127
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
When installing a Flutter version without the `xz` binary available, it results in an installation failure, but the requested version is also registered as if the installation was successful:
```
root@337d2c0a2675:~# asdf install flutter 3.16.2-stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 626M 100 626M 0 0 30.8M 0 0:00:20 0:00:20 --:--:-- 33.1M
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@337d2c0a2675:~# asdf list flutter
3
*3.16
3.16.1
3.16.1-stable
3.16.2-stable
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce `asdf install flutter 3.16.2-stable` in an environment without the `xz` binary, then trace the installation flow that runs before `asdf list flutter`. Done means the failed installation no longer registers the requested Flutter version, while successful installations continue to appear in the list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100