Skip to content

[CP] Fix Windows powershell script not being able to update Dart SDK #132718

@christopherfujino

Description

@christopherfujino

Issue Link

#132592

Commit Hash

7ee864e

Target

beta (3.14)

PR Link

#132762

Changelog Description

Ensure the existing //flutter/bin/cache/LICENSE.dart_sdk_archive.md is moved before unzipping a new Dart SDK, preventing the powershell script from hanging.

Impacted Users

Windows developers

Impact Description

Once users get on an affected version, their NEXT flutter upgrade will leave them in a bad state where they can't extract the new Dart SDK. Re-running the tool will not help, as the batch entrypoint will still detect the Dart SDK is not present, and then run the powershell script to download and unzip the Dart SDK.

Workaround

The workaround would be to run flutter upgrade until it hangs, kill the process, delete //flutter/bin/cache/LICENSE.dart_sdk_archive.md, and then re-run to complete extracting the zip and building the tool.

Risk

medium

Test Coverage

yes

Validation Steps

No response

Metadata

Metadata

Labels

cp: approvedApproved cherry-pick requestcp: merge-to-betaCherry-picks that should be merged to betacp: mergedCherry-pick has been merged to the release branch.cp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions