When I install a software, scoop will create a RunAsAdmin folder in the current working directory to save the cache
yuanj82 opened this issue · comments
Bug Report
Current Behavior
When I install a software, scoop will create a RunAsAdmin folder in the current working directory to save the cache. Why?
The command I executed when installing scoop was
.\install.ps1 RunAsAdmin -ScoopDir 'C:\Scoop' -ScoopGlobalDir 'C:\Scoop' -Proxy 127.0.0.1:7890
When I use scoop to install software in any directory, it will create a RunAsAdmin/ folder in that directory to store the cache. How can I change it to the default scoop/cache?
Additional context/output
uan@ MINGW64 /d/Home $ ls
NGS-analysis/ resume/ RunAsAdmin/
uan@ MINGW64 /d/Home $ cd RunAsAdmin/
uan@ MINGW64 /d/Home/RunAsAdmin $ ls
llvm#18.1.4#https_github.com_llvm_llvm-project_releases_download_llvmorg-18.1.4_LLVM-18.1.4-win64.exe_dl.7z*
Possible Solution
System details
Windows version: [10]
OS architecture: [64bit]
PowerShell version: [output of "$($PSVersionTable.PSVersion)"
]
Major Minor Build Revision
----- ----- ----- --------
5 1 19041 4291
.\install.ps1 RunAsAdmin -ScoopDir 'C:\Scoop' -ScoopGlobalDir 'C:\Scoop' -Proxy 127.0.0.1:7890
^
^ Missing a dash here.
RunAsAdmin
is passed as string as a location parameter to the install script.
How can I change it to the default scoop/cache?
scoop config rm cache_path
or delete env var SCOOP_CACHE
, one of them will exist on your PC at least.