-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet tool install
s unlisted and depreciated version
#32728
Comments
The NuGet API has that version as the most recent (you can see this in this manifest at the very bottom of the list): https://api.nuget.org/v3-flatcontainer/dafny/index.json, so our behavior is at least consistent with that. I think the presence of that NuGet-style version is throwing things off - I would check with the package authors to see more about when that package was created. |
I'm somewhat to blame there. |
Ok, gotcha. I think this is another symptom of the fact that we use 'restore' under the hood here. Restore is allowed to retrieve unlisted versions because for a normal project you don't want to break consumers. Tools shouldn't behave in that same way, however, and when we rewrite these experiences to use the NuGet APIs directly instead of indirectly, we can and will enforce this filtering you intended. I strongly expect this is a duplicate of an issue we've got linked in the .NET 8 Tools epic, I'll try to link it shortly. |
Yes, good call. |
Describe the bug
Installing without a specified version doesn't get me the latest listed version. I would expect to get
4.1.0
, which I get when browsing NuGet, or doingdotnet tool search dafny
, but I get4.1.0.50509
instead.To Reproduce
The text was updated successfully, but these errors were encountered: