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/?
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
$HOMEwe use for Dart tooling.We currently have:
~/.dart-tool/(containing telemetry data)~/.dart/(extra executables)~/.dartServer/(analysis server)~/.pub-cache(introduced in the days whenpubwas a standalone tool rather thandart pub)~/.flutter-devtools/.devtoolsFor 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/?~/.dart/telemetry/~/.dart/analytics/~/.dart/analysis_server/~/.dart/pub/(Can we migrate, or is that too painful? @sigurdm)~/.dart/devtools/~/.dart/installed/([cli] Introducedart install(replacingdart pub global activateto use) #60889)