You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App-data migration moves virtualenv.ini into the cache #3594
When virtualenv migrates its legacy app-data directory to the cache on macOS or Windows, it moves virtualenv.ini with the cached files. Later runs look in the original location and fall back to defaults.
Affected code
The migration moves the entire directory for sibling paths and moves the directory entries for nested paths. The INI loader still looks in the platform configuration directory. MigrationConfig lookup
Reproduction
On ea7688a0, put virtualenv.ini and a cached file in a temporary legacy app-data directory. Stub the platform directory functions so the cache path is either a sibling or a child of that directory, then call make_app_data(None, read_only=False, env={}). Both layouts moved both files. The INI should remain in the legacy directory.
Impact
Reproduction is moderate and exposure is niche. The user must have a config file in the legacy directory, and the cache directory must be absent.
Activity
🐛 fix(app-data): preserve config on migration