-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonatype Nexus Repository 3.71.0 & chocolatey #513
Comments
the problem is the chocolatey upgrade comand has issues on a nuget hosted repository with the index.json specified. |
Unfortunately, we aren't planning to rebuild support for deprecated NuGet API endpoints in the foreseeable future, but we are aware there is an issue here. We'll leave this issue open to accumulate demand. |
@mrprescott can you confirm if there is a known bug with Sonatype Nexus and Chocolatey using v3 nuget repo's. Is there something we can do together to fix this issue? |
Is there a timeline to resolve this issue? |
@TK5-Tim We're not planning any changes relating to this issue in the immediate future, but we are monitoring demand. |
@mrprescott Could you confirm if there are any known issues with Sonatype Nexus and Chocolatey? Is this issue related to Chocolatey due to the use of deprecated features? Chocolatey mentions there is a known issue on the Nexus side, but it doesn't appear in Sonatype's public issue tracker: |
Oh, great! Just passing to mention that I also encountered this issue. After taking the time to migrate my old database from OrientDB to H2, I have now discovered that this disrupted my company's entire Chocolatey feed. It would have been immensely helpful to see a mention of this in the release notes of Nexus for Chocolatey users. I would not have migrated if I had known this. Yes. The documentation tell us that v2 support was removed. But I would never have imagined that Chocolatey (which claims to support v3 repositories) would break like this. To reiterate: Every chocolatey user out there has now to run choco feature disable --name='usePackageRepositoryOptimizations' to use any feed from Sonatype Nexus OSS 3.71+. |
According to the Chocolatey team, the issue originates from the Nexus side:
To the best of my understanding, the search features of a v3-only repository are more limited compared to those of a "v2+v3"-capable repository. As @mrprescott mentioned, the v2 endpoints have been deprecated and removed. That’s understandable. However, in this case, Nexus should not be advertising v2 features to its clients. This seems to be the core issue. Chocolatey is acting based on the capabilities Nexus claims to support. More information: https://blog.chocolatey.org/2025/02/repository-search-queries/ |
Since upgrading to version 3.71.0 and migrating to the new database, we've encountered issues with Chocolatey due to Sonatype’s lack of support for deprecated NuGet v2 API requests.
Questions:
Is there an option in Sonatype to enable support for deprecated API requests to maintain backward compatibility?
Alternatively, is there a recommended approach to handle these legacy requests in Sonatype?
While there is a workaround available from Chocolatey, using choco feature disable --name='usePackageRepositoryOptimizations', it’s not ideal because it requires a client-specific setting.
Thank you for any guidance or recommendations!
The text was updated successfully, but these errors were encountered: