-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyt: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Change the script execution policy using Group Policy (requires Windows Pro)
- Execute any flutter commands (e.g.,
flutter doctor
)
The previous issues were closed due to inactivity:
- update_dart_sdk.ps1 not digitally signed #50934
- update_dart_sdk.ps1 is not digitally signed on Windows #39692
Expected results
The PowerShell script should be signed to work on Windows machines with policies restricting executing signed scripts only
Actual results
The script flutter\bin\internal\update_dart_sdk.ps1
is not digitally signed. Upon executing Flutter commands like flutter doctor
or flutter upgrade
the error would show
Code sample
Code sample
flutter doctor
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
& : File C:\flutter\bin\internal\update_dart_sdk.ps1 cannot be loaded. The file
C:\flutter\bin\internal\update_dart_sdk.ps1 is not digitally signed. You cannot run this script on the
current system. For more information about running scripts and setting execution policy, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:81
+ ... sdk.ps1'; & 'C:\flutter\bin\internal\update_dart_sdk.ps1' ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Flutter Doctor output
Doctor output
> flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine b20183e04096094bcc37d9cde2a4b96f5cc684cf...
& : File C:\flutter\bin\internal\update_dart_sdk.ps1 cannot be loaded. The file
C:\flutter\bin\internal\update_dart_sdk.ps1 is not digitally signed. You cannot run this script on the
current system. For more information about running scripts and setting execution policy, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:81
+ ... sdk.ps1'; & 'C:\flutter\bin\internal\update_dart_sdk.ps1' ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Building flutter tool...
Running pub upgrade...
Resolving dependencies... (3.0s)
Got dependencies.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.22621.2134], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.2)
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
[✓] VS Code (version 1.81.1)
[✓] Connected device (1 available)
[✓] Network resources
• No issues found!
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyt: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team