-
Notifications
You must be signed in to change notification settings - Fork 693
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
Ensure the namespaces filtering is respected in packages.config package installation/updates in PMC #4150
Ensure the namespaces filtering is respected in packages.config package installation/updates in PMC #4150
Conversation
4acc7a4
to
7409945
Compare
7409945
to
3a4223d
Compare
3a4223d
to
072d6b8
Compare
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.
LGTM.
test/NuGet.Tests.Apex/NuGet.Tests.Apex/Utility/CommonUtility.cs
Outdated
Show resolved
Hide resolved
@@ -149,6 +154,17 @@ public static SimpleTestPackageContext CreatePackage(string packageName, string | |||
return package; | |||
} | |||
|
|||
public static SimpleTestPackageContext CreateCustomPackage(string packageName, string packageVersion, string requestAdditionalContent) |
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.
nit: CustomPackage is not a super descriptive name. A better name would call out what it's compatible with.
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.
Refactored it and rename to CreateNetCorePackage
.
Bug
Fixes: NuGet/Home#11001
Regression? Last working version: N/A
Description
This change ensuring that the namespaces are respected during package installation in PMC. If there is same package Id exist in 2 repositories then it only request it from one it specified in namespace filter, previously we try to fetch from all possible repositories and install one from fastest which may not be what user really wanted.
This PR is continuation of #4140.
Please note: init.ps1 is might not respect package namespace filtering, because technically any powershell command could be inside it and it can do pretty much anything including direct downloading assets from web.
PR Checklist
PR has a meaningful title
PR has a linked issue.
Described changes
Tests
Documentation