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] cannot install git with no manifest after install with -ScoopDir option #4959

Closed
atsushifx opened this issue May 31, 2022 · 1 comment
Labels

Comments

@atsushifx
Copy link

Bug Report

Current Behavior

I install scoopinstaller locally with -ScoopDir option. command line is here.

.\inst.ps1 -ScoopDir C:\Users\atsushifx\app\scoop

After installed, I install git from scoop, but "Couldn't find manifest for 'git'."
message is given.

Expected Behavior

can install git and can do it.

Additional context/output

check bucket by `scoop bucket list', this error message is outputted.

C: /temp # scoop bucket list
Get-Item: C:\Users\atsushifx\app\scoop\apps\scoop\current\lib\buckets.ps1:138
Line |
 138 |              $bucket.Updated = (Get-Item "$path\bucket").LastWriteTime
     |                                 ~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\atsushifx\scoop\buckets\main\bucket' because it does not exist.


Name Source               Updated Manifests
---- ------               ------- ---------
main ~\scoop\buckets\main                 0

expected bucket directory is '~/app/scoop/buckets', maybe scoop does not read config file.

Possible Solution

in lib/core.ps1, insert line 1125 to 1136 blocks to line 1112 to
load config file before $scoopDir set up.

System details

Windows version: [e.g. 7, 8, 10]
Windows 11 (22H2)

OS architecture: [e.g. 32bit, 64bit]
64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
7.2.4

Additional software: [(optional) e.g. ConEmu, Git]
Windows Terminal

Scoop Configuration

XDG_CONFIG_HOME=C:\Users\atsushifx\.config
//# Your configuration here
{
  "SCOOP_REPO": "https://github.com/ScoopInstaller/Scoop",
  "SCOOP_BRANCH": "master",
  "rootPath": "C:/Users/atsushifx/app/scoop",
  "globalPath": "c:/app/scoop",
  "cachePath": "c:/app/scoop/.system/cache",
  "lastUpdate": "2022-05-31T22:55:43.4951545+09:00"
}
@atsushifx atsushifx added the bug label May 31, 2022
@rashil2000
Copy link
Member

#4918

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