Skip to content

Commit 7a6218c

Browse files
committed
Show message about missing bucket when installing dependencies
1 parent 9103cfe commit 7a6218c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/depends.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ function dep_resolve($app, $arch, $resolved, $unresolved) {
2323
$app, $bucket, $null = parse_app $app
2424
$unresolved += $app
2525
$null, $manifest, $null, $null = locate $app $bucket
26-
if(!$manifest) { abort "Couldn't find manifest for '$app'$(if(!$bucket) { '.' } else { " from '$bucket' bucket." })" }
26+
if(!$manifest) {
27+
if(!(buckets).Contains($bucket)) {
28+
warn "Bucket '$bucket' not installed. Add it with 'scoop bucket add $bucket' or 'scoop bucket add $bucket <repo>'."
29+
}
30+
abort "Couldn't find manifest for '$app'$(if(!$bucket) { '.' } else { " from '$bucket' bucket." })"
31+
}
2732

2833
$deps = @(install_deps $manifest $arch) + @(runtime_deps $manifest) | Select-Object -uniq
2934

0 commit comments

Comments
 (0)