[X] I have verified this is the correct repository for opening this issue.
[X] I have verified no other issues exist related to my problem.
[X] I have verified this is not an issue for a specific package.
[X] I have verified this issue is not security related.
[X] I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
When a v3 only feed is being used (one that does not contain a reference to LegacyGallery) and you attempt to search for packages while using the --version parameter and the version is not the latest, the outputted results do not contain the packages that should be found.
What is Expected?
Chocolatey CLI should output the relevant packages from the search that is returned from the server. Even if it has to do another request to check for the versions.
How Did You Get This To Happen?
As most providers uses a combination of a v2 and v3 feed (by specifying a LegacyGaller endpoint), first a handcrafted index.json file is needed.
Copy the contents of the index.json file from one of your sources.
Remove the entry in the file mentioning LegacyGallery.
Upload the file to a remote location, and update your sources.
Run choco search <PACKAGE_NAME> --version <PACKAGE_VERSION> (replace values with known values of a package and older version)
Run the same command against your original feed that have a entry for LegacyGallery
Compare the results and notice the v3-only version has no entries.
System Details
Operating System: Windows 10
Windows PowerShell version: Core 7.4.1 and Desktop 5.1.19041.3996
Checklist
What You Are Seeing?
When a v3 only feed is being used (one that does not contain a reference to
LegacyGallery
) and you attempt to search for packages while using the--version
parameter and the version is not the latest, the outputted results do not contain the packages that should be found.What is Expected?
Chocolatey CLI should output the relevant packages from the search that is returned from the server. Even if it has to do another request to check for the versions.
How Did You Get This To Happen?
As most providers uses a combination of a v2 and v3 feed (by specifying a
LegacyGaller
endpoint), first a handcraftedindex.json
file is needed.index.json
file from one of your sources.LegacyGallery
.choco search <PACKAGE_NAME> --version <PACKAGE_VERSION>
(replace values with known values of a package and older version)LegacyGallery
System Details
Installed Packages
Output Log
Additional Context
No response