Skip to content

Get-FullPackageInfo seems to be broken with CCR changes #41

@TheCakeIsNaOH

Description

@TheCakeIsNaOH

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)

  1. Import module on pwsh 7
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions