-
Notifications
You must be signed in to change notification settings - Fork 6
Get-FullPackageInfo seems to be broken with CCR changes #41
Copy link
Copy link
Open
Description
Expected Behavior
Get-FullPackageInfo -PackageId wget works
Current Behavior
It fails with a http error.
Invoke-RestMethod: \chocolatey-diff\chocolatey-diff\Public\Get-FullPackageInfo.ps1:32
Line |
32 | … ]$jsonVersions = Invoke-RestMethod -Uri $url -UseBasicParsing | Selec …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The page you requested was removed.
MethodInvocationException: F:\github\chocolatey-diff\chocolatey-diff\Classes\SemanticVersion.ps1:15
Line |
15 | $semVer.VersionOnly = [version]::Parse($version)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "Parse" with "1" argument(s): "Version string portion was too short or too long. (Parameter
| 'input')"
Name Value
---- -----
Versions {}
Id wget
Url https://chocolatey.org/packages/Possible Solution
Use one of the still supported API endpoints instead one of the removed ones.
Steps to Reproduce (for bugs)
- Import module on pwsh 7
- Run
Get-FullPackageInfo -PackageId wget
Context
Module broken
Your Environment
- Script version used: Latest master
- Powershell Version used: 7.4.2
- Operating System: Win 10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels