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
The supported subset of legacy Nuget v2 protocol in H2 and PostgreSQL environments is the same as that supported by Microsoft's NuGet Gallery, nuget.org. Use cases that rely on deprecated parts of the NuGet v2 API are not supported, including many common Chocolatey use cases and some custom OData queries.
As part of the deprecation, Nexus still advertises that it supports NuGet v2 search for it's NuGet v3 repository, which Chocolatey CLI will fall back to using and tries to optimize. This may lead to issues.
Sonatype Nexus Repository NuGet v3 Search Issues
If you are having issues during search of a NuGet v3 repository in Sonatype Nexus Repository, please disable usePackageRepositoryOptimizations by running choco feature disable --name='usePackageRepositoryOptimizations'. This will stop Chocolatey CLI from optimizing queries to the NuGet v2 search endpoint, but may lead to more queries being made and therefore longer search times.
If you are a customer with Support and Maintenance, and require further help, please reach out to the Chocolatey Support team. You will find the options available to you by running choco support from the command line.
Community Support
If you are using the open-source edition of Chocolatey CLI, please reach out on our Community Hub.
The text was updated successfully, but these errors were encountered:
pauby
changed the title
Nexus has deprecated some NuGet v2 functionality
Nexus has deprecated some NuGet v2 optimizations that Chocolatey CLI uses
Sep 2, 2024
I can confirm this issue. We are also running in to problems to install software with Nexus as a repository, since we updated to the new version of the repository.
Chocolatey CLI is not 'broken', so there is nothing to fix. Nexus deprecated some features that Chocolatey CLI used. Disabling package optimizations works around the changes made.
Recently ported my Nexus from 3.70.3 with an OrientDB, to an H2 DB, then the "latest" docker image.
I had to rebuild my proxy which works great again, but my "self-hosted" project/repo I have is now no longer returning values, AND causing all of my other software items I have installed to also error out when attempting to do a choco outdated, even having this repo link in a lower priority AND having the usePackageRepositoryOptimizations disabled
Repo returns a NuGet.V2.Deprecated on the self hosted option, with no way, that I can tell, to switch my self hosted software over to v2 again
NOTE: This issue is a work in progress and will be updated as we have additional information and experiences from customers and community members.
In version 3.71.0 of Sonatype Nexus Repository, Sonatype deprecated some NuGet v2 optimizations that Chocolatey CLI uses:
As part of the deprecation, Nexus still advertises that it supports NuGet v2 search for it's NuGet v3 repository, which Chocolatey CLI will fall back to using and tries to optimize. This may lead to issues.
Sonatype Nexus Repository NuGet v3 Search Issues
If you are having issues during search of a NuGet v3 repository in Sonatype Nexus Repository, please disable
usePackageRepositoryOptimizations
by runningchoco feature disable --name='usePackageRepositoryOptimizations'
. This will stop Chocolatey CLI from optimizing queries to the NuGet v2 search endpoint, but may lead to more queries being made and therefore longer search times.Further Help
See the Sonatype Nexus Repository documentation:
Customer Support
If you are a customer with Support and Maintenance, and require further help, please reach out to the Chocolatey Support team. You will find the options available to you by running
choco support
from the command line.Community Support
If you are using the open-source edition of Chocolatey CLI, please reach out on our Community Hub.
Related Issues and Discussions
The text was updated successfully, but these errors were encountered: