-
Notifications
You must be signed in to change notification settings - Fork 645
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
feed2catalog produces catalog items with invalid dependency version ranges #3482
Comments
More examples
|
These packages can all still be uploaded to the Gallery. The Gallery deserializes data from I suggest either
|
We have concluded that we should both modify the client to install the latest/oldest version of a package dependency when it encounters a range it cannot understand AND modify |
This work item is: In the gallery, reject new packages with bad dependency version ranges. Just a validation task. |
The gallery cannot differentiate between legitimate "all versions" scenario, and "fallback due to invalid data" scenario, because of the silent fallback. An explicit exception we can handle would be useful. |
The work for this issue would be two parts
|
Reopening for deciding what the server side do with the existing packages with bad dependency range in a package. From #4684 @emgarten comments:
|
We own the microsoft.visualstudio.services.gallery.webapi nuget package. Is there anything we can do on our side to fix this issue for this particular package while we wait for the nuget fix? |
@tedchamb, I think we need to investigate more about what client scenarios (and versions of clients) are effected by these bad version ranges. Could you describe what issues you or your customers are running into with the "bad" package? |
@joelverhagen The issue is when a customer runs the following command using a nuget.exe the user will get an error and can not install the latest version of the package. We made a mistake on the version dependency for an older version of the package, and there is no way that I know of to fix that on our side. We had a '.' instead of a '-' in [15.106.0.preview] nuget.exe install install Microsoft.VisualStudio.Services.Gallery.WebApi -Verbosity Detailed -Pre NuGet Version: 4.4.0.4475 Installing package 'Microsoft.VisualStudio.Services.Gallery.WebApi' to 'C:'. |
After this fix is deployed, the following packages should be reflowed:
|
All packages on nuget.org with invalid version ranges have been reflowed.
Note that nuget.exe treats invalid version ranges as the "any version" range @tedchamb, let me know if you run into any other issues. |
V3 registration blobs contain packages with invalid version ranges
https://api.nuget.org/v3/registration1/nservicebus.persistence.sql.msbuild/index.json
Expected
feeds should validate packages and avoid displaying invalid data in the feed
Actual
From the client
install-package nservicebus.persistence.sql.msbuild -version 1.0.0-beta0006
fails with:
The text was updated successfully, but these errors were encountered: