Dev Drive Package caches not recognized if set as Machine Level environment variables #3944
Labels
Area-DevDriveInsights
Issue-Bug
Something isn't working or needs investigation
Needs-Triage
New issue that the core contributors need to triage
Dev Home version
0.1801.640.0
Windows build number
10.0.22631.4317
Other software
No response
Steps to reproduce the bug
mkdir D:\packages\pip\ && setx /M PIP_CACHE_DIR D:\packages\pip
(as suggested by the official Dev Drive documentation).pip install uv
.Expected result
The PIP package cache should show up in the list of package caches. It does show up if step 4 were skipped (with the option to move the cache).
Actual result
The package cache does not show up. This is because this code only looks for the cache environment variables set at the user level, not the machine level, even though the official Dev Drive documentation suggests using /M with setx, which sets the variables at the machine level. This seems unnecessarily confusing.
I've no qualms about Dev Home preferring the user level variable setting, since it does not need admin rights, etc. But it should recognize such variables if set at the machine level.
Included System Information
No response
Included Extensions Information
No response
The text was updated successfully, but these errors were encountered: