[CP] Warn about old-style cache #52526
Labels
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
Commit(s) to merge
dart-lang/pub#3921
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/305981
Issue Description
In dart 3.0 Pub on Windows stopped reading caches in
C:\Users<user>\AppData\Roaming\Pub\Cache
(in favor ofC:\Users<user>\AppData\Local\Pub\Cache
).These have not been created by pub since dart 2.8, but have been used if existing until and including 2.19.
This has lead to some amount of confusion for users with an old cache. Especially if they had a %PATH% pointing to the old location, then they would invoke old binstubs of globally activated packages.
What is the fix
We detect the presence of the old cache, and print a warning, and instructions for how to proceed.
Why cherry-pick
It could help guide users to find the new cache.
Risk
low
Issue link(s)
#52386
Extra Info
No response
The text was updated successfully, but these errors were encountered: