Skip to content

Use user_cache_dir for app data with auto-migration from old location - #3033

Merged
gaborbernat merged 2 commits into
pypa:mainfrom
rahuldevikar:users/rahuldevikar/1884
Feb 15, 2026
Merged

Use user_cache_dir for app data with auto-migration from old location#3033
gaborbernat merged 2 commits into
pypa:mainfrom
rahuldevikar:users/rahuldevikar/1884

Conversation

@rahuldevikar

Copy link
Copy Markdown
Contributor

--symlink-app-data creates symlinks from virtualenvs pointing into the app-data directory. If we just hard-switch from user_data_dir -> user_cache_dir, existing symlinks would break because they point to the old location.

Fixes: #1884

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

@rahuldevikar
rahuldevikar marked this pull request as ready for review February 14, 2026 19:28
@gaborbernat
gaborbernat enabled auto-merge (squash) February 15, 2026 05:12
@gaborbernat
gaborbernat merged commit c4779f8 into pypa:main Feb 15, 2026
51 checks passed
This was referenced Mar 12, 2026
asottile added a commit to pre-commit-ci/runner-image that referenced this pull request Mar 15, 2026
asottile added a commit to pre-commit-ci/runner-image that referenced this pull request Mar 15, 2026
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.

Store pip/setuptools/wheel copies under user_cache_dir instead of user_data_dir

2 participants