chriseldredge / Klondike

Ember front-end that builds on NuGet.Lucene for private package hosting
Apache License 2.0
299 stars 74 forks source link

Can't pull newer packages due to version incompatibility #180

Open amattie opened 7 years ago

amattie commented 7 years ago

When I try to pull in https://www.nuget.org/packages/Microsoft.Extensions.SecretManager.Tools/1.1.0-preview4-final, I see this in the logs:

2016-11-18 03:13:16,657 [6] INFO  NuGet.Lucene.Web.Models.MirroringPackageRepository - Mirroring package Microsoft.Extensions.SecretManager.Tools 1.1.0-preview4-final from http://www.nuget.org/api/v2/
2016-11-18 03:13:16,813 [6] ERROR NuGet.Lucene.Web.UnhandledExceptionLogger - One or more errors occurred.
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The schema version of 'Microsoft.Extensions.SecretManager.Tools' is incompatible with version 2.11.1.812
of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.
   at NuGet.Manifest.CheckSchemaVersion(XDocument document)
...

This is happening because ManifestSchemaUtility in 2.12 of the NuGet.Core package doesn't contain http://schemas.microsoft.com/packaging/2016/04/nuspec.xsd, which is the version referenced in the package I'm trying to pull and have mirrored.

There unfortunately doesn't appear to be a version of NuGet.Core that contains this schema. 2.13-rc1-final is out, but I can't find the new schema in that branch. Furthermore, NuGet.Core doesn't allow for publicly-reported issues, so the options are limited.

Can this be worked around somehow in Klondike? NuGet.Core needs fixed, sure, but it's unfortunate that this is breaking package mirroring in Klondike.

chriseldredge commented 7 years ago

Klondike is falling out of step with NuGet. There is a new http api, NuGet V3, which Klondike does not implement and NuGet.Core is officially deprecated.

Personally I have neither the time nor the inclination to continue playing in NuGet's sandbox, and the speed and breadth of breaking changes makes it a full time job to attempt it.