Skip to content

Migrate cache directory from .dart_skills to .dart_tool/skills.#14

Open
jakemac53 wants to merge 11 commits into
serverpod:mainfrom
jakemac53:dart-tool
Open

Migrate cache directory from .dart_skills to .dart_tool/skills.#14
jakemac53 wants to merge 11 commits into
serverpod:mainfrom
jakemac53:dart-tool

Conversation

@jakemac53
Copy link
Copy Markdown
Collaborator

This is the canonical place to put cache files that shouldn't be version controlled, see https://dart.dev/tools/pub/package-layout#project-specific-caching-for-tools. Users should already be git ignoring that path and so there will be one less thing they have to ignore this way.

When loading a manifest for a project, the migration will be automatically performed. There is no need to confirm with the user because this is transparent to them.

Note that a flutter clean will delete this directory, but that is likely a good thing. In case this package somehow gets into a weird state it will force it to start over clean.

Closes dart-lang/ai#469

@jakemac53 jakemac53 marked this pull request as ready for review May 11, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move local cache directory from .dart_skills to .dart_tool/skills

1 participant