Skip to content

Standardizing on a directory in $HOME for Dart (and Flutter) tooling #60922

Description

@dcharkes

Update 2026-03-23: We've aligned on standardizing outside $HOME in OS-specific directories for state in 2af3166. Not all tooling has been migrated. Migration of tooling is tracked in #62952

@bkonyi suggested we should standardize on a directory in $HOME we use for Dart tooling.

We currently have:

  • ~/.dart-tool/ (containing telemetry data)
  • ~/.dart/ (extra executables)
  • ~/.dartServer/ (analysis server)
  • ~/.pub-cache (introduced in the days when pub was a standalone tool rather than dart pub)
  • ~/.flutter-devtools/.devtools
  • system temp (resident frontend server caching dills)

For a the workspace-specific directory we have standardized on <workspace>/.dart_tool/<package-name>/ (doc). (Note the underscore instead of dash.)

Should we standardize?

And if so, should we standardize to ~/.dart/?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions