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
Install-Package should filter unlisted packages when no version is given #5069
Comments
Hi, https://github.com/dotnet/cli/issues/7492 Which should be the designed behavior? Latest unlisted of listed? |
FYI, the CLI issue is the same issue. Perhaps you meant "equivalent", instead of "opposite"? |
I'd say this is definitely a bug, and not designed behavior. The documentation for unlisting a package even says:
And having it install by default does quite the opposite of preventing new usage. |
Experiencing the same issue, https://stackoverflow.com/questions/46977808/updating-nuget-package-yields-unlisted-version |
cc: @anangaur |
dupe of #4553 |
5.3.0 is still downloading unlisted versions? @jainaashish please reopen |
@emgarten ^^^^ |
@matkoch If you think there's a regression please open a new issue since this is not actively monitored. |
5 years later and this is still and issue. I should really sell my MS stock. |
@mwwhited |
@jsakamoto commented on Wed Apr 19 2017
What you were trying to do.
Update the NuGet package "Selenium.WebDriver.MicrosoftWebDriver" from version v.10.0.14393.1 to latest version.
What you expected to happen.
The version of the NuGet package "Selenium.WebDriver.MicrosoftWebDriver" update to v.10.0.15063.0.
What actually happened.
The version of the NuGet package "Selenium.WebDriver.MicrosoftWebDriver" updated to v.10.1.14393.0.
That version is unlisted package version.
See also: https://www.nuget.org/packages/Selenium.WebDriver.MicrosoftWebDriver/10.1.14393
Steps to reproduce the problem.
Appendix Information
I guess, this problem happens due to the JSON response from api.nuget.org.
The JSON reponse contains "upper" proprty, but it looks like include unlisted package versions.
Is it by design and it should not change? or should fix it?
@skofman1 commented on Wed Apr 19 2017
@joelverhagen , @emgarten , is this a client or server issue?
@emgarten commented on Wed Apr 19 2017
Looks like a client issue if the unlisted package is being installed. The upper and lower bounds are correct.
@joelverhagen commented on Wed Apr 19 2017
I confirmed this behavior in NuGet 4.2.0.2451 with a packages.config project. A PackageReference project does not reproduce the problem. The issue occurs for both V2 and V3 NuGet.org source URL.
As @emgarten, this seems to be a client issue.
The text was updated successfully, but these errors were encountered: