Skip to content

Commit

Permalink
Show message about missing bucket when installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Jul 15, 2018
1 parent 9103cfe commit 7a6218c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/depends.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ function dep_resolve($app, $arch, $resolved, $unresolved) {
$app, $bucket, $null = parse_app $app
$unresolved += $app
$null, $manifest, $null, $null = locate $app $bucket
if(!$manifest) { abort "Couldn't find manifest for '$app'$(if(!$bucket) { '.' } else { " from '$bucket' bucket." })" }
if(!$manifest) {
if(!(buckets).Contains($bucket)) {
warn "Bucket '$bucket' not installed. Add it with 'scoop bucket add $bucket' or 'scoop bucket add $bucket <repo>'."
}
abort "Couldn't find manifest for '$app'$(if(!$bucket) { '.' } else { " from '$bucket' bucket." })"
}

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

Expand Down

0 comments on commit 7a6218c

Please sign in to comment.