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] scoop bucket list fails to list main bucket #4978

Closed
danx12 opened this issue Jun 10, 2022 · 2 comments · Fixed by #4960 or #4982
Closed

[Bug] scoop bucket list fails to list main bucket #4978

danx12 opened this issue Jun 10, 2022 · 2 comments · Fixed by #4960 or #4982
Labels

Comments

@danx12
Copy link
Contributor

danx12 commented Jun 10, 2022

Bug Report

Current Behavior

The command scoop bucket list fails to list the main bucket, even though the main bucket is installed.

PS C:\> scoop bucket list
WARN  No bucket found. Please run 'scoop bucket add main' to add the default 'main' bucket.
PS C:\> ls $env:USERPROFILE\scoop\buckets\

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         3/29/2022  12:10 PM                main

Expected Behavior

scoop bucket list should display the main bucket.

Additional context/output

Possible Solution

Modify this line https://github.com/ScoopInstaller/Scoop/blob/master/lib/buckets.ps1#L144 as such:

,$buckets

System details

**Windows version: Windows 10 Pro

**OS architecture: 64bit

**PowerShell version: 5.1.19041.1682

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

Scoop Configuration

//# Your configuration here
@danx12 danx12 added the bug label Jun 10, 2022
@rashil2000
Copy link
Member

Can you show the output of:

scoop config SCOOP_BRANCH develop
scoop update
scoop bucket rm main
scoop bucket add main

@danx12
Copy link
Contributor Author

danx12 commented Jun 10, 2022

Here it is:

PS C:\> scoop config SCOOP_BRANCH develop
'SCOOP_BRANCH' has been set to 'develop'
PS C:\> scoop update
Updating Scoop...
Updating 'main' bucket...
Scoop was updated successfully!
PS C:\> scoop bucket rm main
PS C:\> scoop bucket add main
Checking repo... OK
The main bucket was added successfully.
PS C:\> scoop bucket list
WARN  No bucket found. Please run 'scoop bucket add main' to add the default 'main' bucket.

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