Skip to content

[BUG] Installing a flutter SDK failing #1014

@coups-cs

Description

@coups-cs

Describe the bug

When the fvm cli attempts to install a flutter SDK for the first time there is an Unknown error
Image

ProcessException: Unknown error
     Command: git clone --progress -c advice.detachedHead=false -b stable --reference /Users/user/fvm/cache.git https://github.com/flutter/flutter.git /Users/user/fvm/versions/stable

This is the state of the fvm folder in my user filesystem
Image

If I then attempt to install again it has an issue with the clone repo.
Image

This happens upon installing any version of the Flutter SDK
Image

The issue appears not to be localised to my MacBook, I have found another user is experiencing the same issue.

There's a simple work around which I will post in this thread.

To Reproduce
Steps to reproduce the behavior:

  1. Go to terminal.
  2. Run fvm install stable or fvm install <Flutter SDK version number>
  3. See error

Expected behavior
Flutter SDK version should install correctly into the version folder to be used in your project

Logs

fvm install 3.41.0 --verbose
Argument information:
Top level options:
- verbose: true

Command: install

Skipping git reference validation for version: 3.41.0
Updating local mirror...
Ensuring clean working directory...
Pruning stale references...
Fetching all refs...
Checking for uncommitted changes...
No uncommitted changes. Working directory is clean.
Local mirror updated successfully
Installing Flutter SDK: SDK Version : 3.41.0
Cloning into '/Users/samcoupland/fvm/versions/3.41.0'...
Updating files: 100% (15354/15354), done.
✗ Failed to install 3.41.0 (0ms)
✗ Flutter SDK is not a valid git repository after clone. Please try again.

Desktop:

  • OS: IOS
  • FVM Version: 4.0.5

Additional context

I have installed the latest version of FVM using brew, however I have experienced the same issue after installing it directly from fvm.app.

I can confirm git is working correctly and I have also updated the git config to allow for larger packet sizes and to accommodate for large repos, but have not seen a change in this error.

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