Skip to content

Commit

Permalink
fix(buckets): run core.ps1 for $scoopdir
Browse files Browse the repository at this point in the history
CI tests were failing due to $bucketsdir resolving to "D:\buckets"

> Describing Test-UpdateStatus
> Error: [-] Describe Test-UpdateStatus failed
> Message
>  ItemNotFoundException: Cannot find path 'D:\buckets' because it does not exist.
>  at Get-LocalBucket, D:\a\ScoopInstaller.Scoop\ScoopInstaller.Scoop\lib\buckets.ps1:61
>  at <ScriptBlock>, D:\a\ScoopInstaller.Scoop\ScoopInstaller.Scoop\libexec\scoop-status.ps1:38
>  at <ScriptBlock>, D:\a\ScoopInstaller.Scoop\ScoopInstaller.Scoop\test\Scoop-Status.Tests.ps1:33
  • Loading branch information
BinToss committed Jan 29, 2025
1 parent 37a64b6 commit 4aa288e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/buckets.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Imports
. "$PSScriptRoot/core.ps1" # "$scoopdir"

$bucketsdir = "$scoopdir\buckets"

function Find-BucketDirectory {
Expand Down

0 comments on commit 4aa288e

Please sign in to comment.