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 add local bucket path as bucket #5314

Closed
redactedscribe opened this issue Dec 30, 2022 · 3 comments
Closed

[Bug] Cannot add local bucket path as bucket #5314

redactedscribe opened this issue Dec 30, 2022 · 3 comments
Labels

Comments

@redactedscribe
Copy link

Bug Report

Current Behavior

I used to have a bucket added from a local bucket path but I just had to scoop bucket rm mybucket it because the drive letter has changed on my system and Scoop began to complain that it cannot find it any longer. Now when I try to re-add the bucket at its new location, I always get an error:

scoop bucket add mybucket "E:\Scoop\mybucket"
ERROR E:\Scoop\mybucket is not a valid Git URL!
ERROR Please see https://git-scm.com/docs/git-clone#_git_urls for valid ones.

Expected Behavior

Add the local bucket.

Additional context/output

I'm sure this used to work (else how was mybucket originally added?) but after having done a search, I see this comment from a ~year ago saying that Scoop doesn't even support adding local bucket paths... What am I missing?

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 7.3.1

Scoop Configuration

{
  "aria2-enabled": true,
  "shim": "kiennq",
  "last_update": "2022-12-30T13:09:19.6053214+02:00",
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}
@HUMORCE
Copy link
Member

HUMORCE commented Dec 30, 2022

Scoop used to support this.

refer: #4704

EDIT:
For performance, it is recommended to copy the bucket to <Scoop>\buckets directly or use Junction instead

@lewis-yeung
Copy link
Contributor

@redactedscribe You can use slashes instead of backslashes in the local path. The following works fine:

scoop bucket add mybucket "E:/Scoop/mybucket"

@redactedscribe
Copy link
Author

@lewis-yeung Thanks, that was it!

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

4 participants