Skip to content

Cloning Flutter SDK via VS Code doesn't enable non-stable branch selection #4686

Closed

Description

@anderdobo

When you clone the Flutter SDK with the flow provided in VS Code, you don't get the option to switch to channels other than stable.

Recommendation: Users who install the SDK through the flow offered in VS Code should have the ability to switch to all the available channels (currently master, main, beta and stable).

Screenshot of results in the terminal after cloning the SDK through the flow in VS Code and setting up the system's PATH environment variable (same result in VS Code's inbuilt terminal):
Screenshot 2023-08-11 at 1 57 01 PM

Activity

  1. DanTup commented on Aug 13, 2023

    @DanTup
    Member

    Oof, good catch. This is probably because of --single-branch here which I thought would improve performance (less data needs to be downloaded) and didn't consider this.

    const gitProc = await runToolProcess(this.logger, workingDirectory, "git", ["clone", "-b", "stable", "--single-branch", gitUrl], undefined, cancellationToken);

  2. added this to the v3.72.0 milestone on Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions