Skip to content

Bugfix: Update-PSResource should not re-install dependency packages which already satisfy dependency criteria - #1915

Closed
Anam Navied (anamnavi) wants to merge 1 commit into
PowerShell:masterfrom
anamnavi:fix-update-dependencies-reinstall
Closed

Bugfix: Update-PSResource should not re-install dependency packages which already satisfy dependency criteria#1915
Anam Navied (anamnavi) wants to merge 1 commit into
PowerShell:masterfrom
anamnavi:fix-update-dependencies-reinstall

Fix Update-PSResource re-installing dependency packages which already…

d73c3a9
Select commit
Loading
Failed to load commit list.
Azure Pipelines / PowerShell.PSResourceGet succeeded Dec 3, 2025 in 51m 3s

Build #PowerShell.PSResourceGet-2512.02003 had test failures

Details

Tests

  • Failed: 44 (0.47%)
  • Passed: 8,741 (94.19%)
  • Other: 495 (5.33%)
  • Total: 9,280

Annotations

Check failure on line 1 in Test Find-PSResource for searching and looping through repositories.find resource that has CommandName specified from all repositories where it exists and not write errors where it does not exist (without -Repository specified)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PowerShell.PSResourceGet

Test Find-PSResource for searching and looping through repositories.find resource that has CommandName specified from all repositories where it exists and not write errors where it does not exist (without -Repository specified)

Expected the actual value to be greater than or equal to 9, but got 1.
Raw output
at <ScriptBlock>, D:\a\1\s\test\FindPSResourceTests\FindPSResourceRepositorySearching.Tests.ps1: line 464
464:         $res.Count | Should -BeGreaterOrEqual 9

Check failure on line 1 in Test Find-PSResource for searching and looping through repositories.not find resource and discard CommandName entry containing wildcard, but search for other non-wildcard CommandName entries (without -Repository specified)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PowerShell.PSResourceGet

Test Find-PSResource for searching and looping through repositories.not find resource and discard CommandName entry containing wildcard, but search for other non-wildcard CommandName entries (without -Repository specified)

Expected the actual value to be greater than or equal to 9, but got 1.
Raw output
at <ScriptBlock>, D:\a\1\s\test\FindPSResourceTests\FindPSResourceRepositorySearching.Tests.ps1: line 512
512:         $res.Count | Should -BeGreaterOrEqual 9

Check failure on line 1 in Test Find-PSResource for searching and looping through repositories.find resources from all pattern matching repositories where it exists (-Repository with wildcard)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PowerShell.PSResourceGet

Test Find-PSResource for searching and looping through repositories.find resources from all pattern matching repositories where it exists (-Repository with wildcard)

Expected an empty collection, but got collection with size 1 @(Package with CommandName 'Get-TargetResource' could not be found in registered repositories: 'PSGallery, NuGetGallery'.).
Raw output
at <ScriptBlock>, D:\a\1\s\test\FindPSResourceTests\FindPSResourceRepositorySearching.Tests.ps1: line 537
537:         $err | Should -HaveCount 0

Check failure on line 1 in Test Find-PSResource for searching and looping through repositories.find resource given CommandName from all repositories where it exists (-Repository with multiple non-wildcard values)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PowerShell.PSResourceGet

Test Find-PSResource for searching and looping through repositories.find resource given CommandName from all repositories where it exists (-Repository with multiple non-wildcard values)

Expected the actual value to be greater than or equal to 9, but got 1.
Raw output
at <ScriptBlock>, D:\a\1\s\test\FindPSResourceTests\FindPSResourceRepositorySearching.Tests.ps1: line 595
595:         $res.Count | Should -BeGreaterOrEqual 9