You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this is the correct repository for opening this issue.
I have verified no other issues exist related to my problem.
I have verified this is not an issue for a specific package.
I have verified this issue is not security related.
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 LegacyGallery 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
This updates the handling of searching for packages while at the same
time specifying the version that is wanted of the packages.
This ensures that packages will be looked up to verify it has the
version the user wants, before returning any results.
This updates the handling of searching for packages while at the same
time specifying the version that is wanted of the packages.
This ensures that packages will be looked up to verify it has the
version the user wants, before returning any results.
gep13
changed the title
Searching for specific version on v3 only feed returns no results
Searching for specific version on a NuGet v3 only feed returns no results
Jan 29, 2025
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
LegacyGallery
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
The text was updated successfully, but these errors were encountered: