Repository navigation
Remove NU5105, do not warn when a package with a semver2 version is created - #3226
Merged
Merged
Conversation
nkolev92
requested review from
aortiz-msft,
cristinamanum,
dominoFire,
donnie-msft,
dtivel,
heng-liu,
kartheekp-ms,
rrelyea,
zivkan and
zkat
as code owners
February 6, 2020 05:53
Member
Author
|
🔔 |
zivkan
reviewed
Feb 11, 2020
nkolev92
force-pushed
the
dev-nkolev92-removeNU5105
branch
from
February 12, 2020 00:27
d23dc38 to
8bac16e
Compare
zivkan
approved these changes
Feb 12, 2020
Member
Author
|
Had some test failures that should be fixed. |
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#5201
Regression: Yes/No
Fix
Details:
Related to NuGet/NuGetGallery#7836
@joelverhagen perfectly summarized it there. Rephrasing (copying) most of his description.
Note: The nuget.org equivalent work is already being done in NuGet/NuGetGallery#7837, so it'd be nice for both the client and the server make the change around the same time.
When the SemVer 2.0.0 changes were introduced to the V2 and V3 protocol, they are intended to mitigate the impact of SemVer 2.0.0 packages breaking old clients, e.g. suppose a very popular package released a SemVer 2.0.0 version. In such a case a 2.x customer would fail to restore a package because the version parsing would explode. So we make SemVer 2.0.0 packages "opt-in".
This protocol change meant that SemVer 2.0.0 packages were hidden in most of our APIs for clients that predate NuGet version 4.3. 4.3 is when the SemVer 2.0.0 protocol was implemented.
At that time a pack warning was added.
Since 4.3 was shipped so long ago, most clients now support the SemVer 2.0.0 protocol and this warning is more noisy than helpful.
**=The biggest motivation here is that needless warnings often force customers to no warn or in extreme scenario run NoPackageAnalysis=true which renders all of our current/future package quality warning useless.
In this PR, I am removing any reference to the warning itself. I don't see a reason to keep the code around.
Testing/Validation
Tests Added: Yes
Reason for not adding tests:
Validation: