Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I install a software, scoop will create a RunAsAdmin folder in the current working directory to save the cache #5938

Open
yuanj82 opened this issue May 5, 2024 · 1 comment
Labels

Comments

@yuanj82
Copy link

yuanj82 commented May 5, 2024

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
@yuanj82 yuanj82 added the bug label May 5, 2024
@HUMORCE
Copy link
Member

HUMORCE commented May 11, 2024

.\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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants