Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anderdobo opened this issue Aug 11, 2023 · 1 comment
Closed
Labels
in flutter Relates to running Flutter apps is bug
Milestone

Comments

@anderdobo
Copy link

anderdobo commented Aug 11, 2023

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

@DanTup
Copy link
Member

DanTup commented Aug 13, 2023

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);

@DanTup DanTup added is bug in flutter Relates to running Flutter apps labels Aug 13, 2023
@DanTup DanTup added this to the v3.72.0 milestone Aug 13, 2023
@DanTup DanTup closed this as completed in e35018f Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in flutter Relates to running Flutter apps is bug
Projects
None yet
Development

No branches or pull requests

2 participants