Skip to content

Fix AppVeyor dbatools.library cache miss by installing to AllUsers scope#10335

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-10333-20260406-1059
Apr 7, 2026
Merged

Fix AppVeyor dbatools.library cache miss by installing to AllUsers scope#10335
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-10333-20260406-1059

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Fixes #10333

The AppVeyor cache in appveyor.yml expects dbatools.library at C:\Program Files\WindowsPowerShell\Modules\dbatools.library, but the install script was called without a scope, defaulting to CurrentUser and installing to the user profile path instead.

Adding -Scope AllUsers to the install script call in tests/appveyor.prep.ps1 ensures the module is installed to the path the cache is watching.

Generated with Claude Code

The cache in appveyor.yml expects dbatools.library at:
  C:\Program Files\WindowsPowerShell\Modules\dbatools.library

But install-dbatools-library.ps1 defaulted to CurrentUser scope,
installing to C:\Users\appveyor\Documents\WindowsPowerShell\Modules
instead, causing the 'Cache entry not found' warning every build.

Passing -Scope AllUsers aligns the install location with the cache path.

(do *appveyor*)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee potatoqualitee merged commit 070d2ee into development Apr 7, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-10333-20260406-1059 branch April 7, 2026 18:41
@potatoqualitee
Copy link
Copy Markdown
Member

Very nice 🙏🏼

potatoqualitee added a commit that referenced this pull request Apr 10, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppVeyor outputs: Cache entry not found

2 participants