Skip to content

Commit 44045df

Browse files
committed
fix authenticode and update
1 parent 7f24c34 commit 44045df

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/code/V2ServerAPICalls.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ public override async Task<FindResults> FindVersionGlobbingAsync(string packageN
16181618

16191619
if (initialCount == 0)
16201620
{
1621-
throw new ResourceNotFoundException($"Package with name '{packageName}' could not be found in repository '{Repository.Name}'.");
1621+
return new FindResults(stringResponse: responses.ToArray(), hashtableResponse: emptyHashResponses, responseType: v2FindResponseType);
16221622
}
16231623

16241624
responses.Add(initialResponse);

test/SavePSResourceTests/SavePSResourceV2.Tests.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
199199
Save-PSResource -Name $testModuleName -Version "5.0.0" -AuthenticodeCheck -Repository $PSGalleryName -TrustRepository -Path $SaveDir -ErrorVariable err -ErrorAction SilentlyContinue
200200
$err.Count | Should -BeGreaterThan 0
201201
$err[0].FullyQualifiedErrorId | Should -Contain "GetAuthenticodeSignatureError,Microsoft.PowerShell.PSResourceGet.Cmdlets.SavePSResource"
202-
$err[1].FullyQualifiedErrorId | Should -Contain "InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.SavePSResource"
203202
}
204203

205204
# Save resource that requires license

0 commit comments

Comments
 (0)