Skip to content

flutter doctor should report whether the Flutter install dir is clean #25220

@zoechi

Description

@zoechi

If the Flutter install directory contains any changes flutter doctor or flutter doctor -v should report that.

It would make it easier for support questions that are caused by inadvertently modified files in the Flutter install dir.

I created https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#flutter-installation-corrupted because this happens quite a lot.

See also #9218
I'd suggest to do the git clean -xfd git stash drop, ... when --force (flutter upgrade --force, flutter channel foo --force) is passed.
It might be useful to execute the git clean stuff with flutter upgrade --force even when no upgrade is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityt: flutter doctorProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamtoolAffects 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.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions