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

[Bug] Trying to install a package after installing scoop with custom directories does not work #4976

Closed
agudbrand opened this issue Jun 9, 2022 · 3 comments
Labels

Comments

@agudbrand
Copy link

agudbrand commented Jun 9, 2022

Bug Report

Current Behavior

I just installed scoop on a fresh install of Windows 10 to custom directories using this command:

.\install.ps1 -RunAsAdmin -ScoopDir 'H:/software!/tools/scoop' -ScoopGlobalDir 'H:/software!/apps' -NoProxy

Then I tried running scoop install git and was met with:

PS H:\> scoop install git
Get-ChildItem : Cannot find path 'C:\Users\sushi\scoop\buckets' because it does not exist.
At H:\software!\tools\scoop\apps\scoop\current\lib\buckets.ps1:61 char:21
+     $bucketNames = (Get-ChildItem -Path $bucketsdir -Directory).Name
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\sushi\scoop\buckets:String) [Get-ChildItem], It
   emNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

Couldn't find manifest for 'git'.

It seems like its still looking in my users folder for the buckets, but I'm not sure why.

Expected Behavior

It finds the buckets on my H: drive that I installed scoop to and installs git.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version:
Major Minor Build Revision


5 1 19041 1682
pretty

Additional software: ConEmu

Scoop Configuration

{
    "rootPath":  "H:/software!/tools/scoop",
    "globalPath":  "H:/software!/apps",
    "lastUpdate":  "2022-06-09T19:04:17.8367189-04:00"
}
@agudbrand agudbrand added the bug label Jun 9, 2022
@agudbrand
Copy link
Author

agudbrand commented Jun 10, 2022

scoop doesn't seem to set the environment variables and the .config is located in my Users folder on my C drive. Do I have to place it somewhere else if I didn't install to the default location?

Temporary solution is running $env:scoop = "H:/software!/tools/scoop". However this does not install apps to the directory specified during installation.

@gabzidevs
Copy link

Was going to open a PR regarding this, but it seems that it is working fine for the develop branch. A more temporary solution, while for some reason this is still stuck there, is to load the config earlier in the core.ps1.

ScoopCustomDirTempCore

@rashil2000
Copy link
Member

Duplicate of #4918

@rashil2000 rashil2000 marked this as a duplicate of #4918 Jun 10, 2022
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

3 participants