Skip to content

[flutter_tools] Refactor Flutter SDK to support installation in read-only directory #91318

@christopherfujino

Description

@christopherfujino

This would support being installed by root by a package manager. This would require:

  • Providing an upgrade mechanism that is not dependent on git
  • Allow the tool to determine its version without calling git commands that may write to .git
  • Provide Flutter SDK version resolution (e.g. flutter --version) not dependent on git tags
  • Moving the Flutter cache directory outside of the repo
  • Tracking the Flutter SDK version file outside the repo (perhaps in the cache?)
  • Ensuring that pub does not try to write to the repo while doing pub get

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.team-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