-
Notifications
You must be signed in to change notification settings - Fork 690
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
Disable cpvm transitive pinning. #3719
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor things, nitpicks really. Keep it in mind for furture changes, but I'm fine with this being merged as-is.
@@ -9795,7 +9795,7 @@ public async Task RestoreNetCore_CPVMProject_DowngradedByCentralDirectDependency | |||
/// P will be accepted (because its parent B is Accepted) | |||
/// S will be accepted (because its parent O 300 is Accepted) | |||
/// </summary> | |||
[Fact] | |||
[Fact(Skip = "Depends on cpvm transitive pinning")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually include a link to a tracking issue either as the skip reason, or as a comment next to the skipped test. This makes it easier to figure out when a test can be unskipped, or maybe deleted permanently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot); | ||
var packagesForSource = new List<SimpleTestPackageContext>(); | ||
var packagesForProject = new List<SimpleTestPackageContext>(); | ||
var framework = NuGetFramework.Parse("netcoreapp2.0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var framework = NuGetFramework.Parse("netcoreapp2.0"); | |
var framework = FrameworkConstants.CommonFrameworks.NetCoreApp20; |
public static readonly NuGetFramework NetCoreApp20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
var projectA = SimpleTestProjectContext.CreateNETCore( | ||
"projectA", | ||
pathContext.SolutionRoot, | ||
NuGetFramework.Parse("netcoreapp2.0")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NuGetFramework.Parse("netcoreapp2.0")); | |
framwork); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good.
Make sure you link an issue for the PR + an issue for the follow-up.
Done |
Disable cpvm transitive pinning.
Disable cpvm transitive pinning.
This reverts commit 087a711. # Conflicts: # test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreNETCoreTest.cs
…ncludeAssets reverts: NuGet#3719 Issue: NuGet/Home#10389
Hi all, I've just spent a few hours debugging a build break and root caused it as this change breaking things. For the future, it would be really nice to avoid breaking things and just provide an option to the users who need to turn it off. The default transitive pinning behavior was good for the vast majority of cases. |
Bug
Fixes: This change disable the enforcing/pinning of package versions for transitive dependencies defined in the CentralManagement file.
NuGet/Home#10132
Regression: No
Fix
Disable transitive dependency pinning.
Testing/Validation
Tests Added: Yes
Validation: Automated and manual tests.