-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix issue that only 1 dependency package is installed #2761
Conversation
@@ -223,7 +224,15 @@ namespace AppInstaller::Manifest | |||
return MinVersion <= Utility::Version(version); | |||
} | |||
|
|||
// m_foldedId should be set whenever Id is set |
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.
So, the issue was that in some cases it wasn't set?
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.
Correct. Before the fix, manifest parsing directly sets Id without any way to set m_foldedId resulting in all dependency packages having same folded id and get treated as same package.
string_t Id() const { return m_id; }; | ||
std::optional<Utility::Version> MinVersion; | ||
|
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.
Not const string_t&
?
Added tests. Also verified locally.
Microsoft Reviewers: Open in CodeFlow