Skip to content

[BUG] Fail agressively when SDK setup fails (e.g. missing dependencies) #968

@vhaudiquet

Description

@vhaudiquet

Before creating a bug report please make check the following

  • You have read our FAQ

Describe the bug
I'm on a riscv64 VM, testing the newly-added risc-v support :)
I set up a .fvmrc with { "flutter": "3.35.3" }, and try to run fvm install.
Everything seems to work, but after download I get:

✓ Flutter SDK: SDK Version : 3.35.3 installed! (95.2s)
Setting up Flutter SDK: 3.35.3


Missing "unzip" tool. Unable to extract Dart SDK.
Consider running "sudo apt-get install unzip".


✓ Flutter SDK: SDK Version : 3.35.3 is setup
[WARN] Flutter SDK is not setup, skipping resolve dependencies.
✓ Project now uses Flutter SDK : SDK Version : 3.35.3

It feels kind of weird that the SDK setup seems to fail, then gives me a checkmark that it works, then a warning about it not being setup, and then a checkmark that everything works.

IMHO this should fail more agressively ? Feel free to close if you don't think that this is relevant, but I feel like the current output is very confusing

To Reproduce
Steps to reproduce the behavior:

  1. Set up a VM / container that does not have unzip
  2. Setup an fvmrc file
  3. Use fvm install

Expected behavior
The program would fail with an error message telling me to fix dependencies, or end on a warning that the SDK is not setup, without ever telling me that it is setup with a checkmark.

Logs

See above

Desktop (please complete the following information):

  • OS: Ubuntu 26.04 Resolute Raccoon (Development Preview)
  • FVM Version: 4.0.1 (latest release)

Additional context

After installing unzip, the SDK setup takes place.
However it downloads the arm64 sdk. This is a whole other bug... (#969)

Thank you for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions