Skip to content
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

Merged
merged 4 commits into from
Dec 9, 2022

Conversation

yao-msft
Copy link
Contributor

@yao-msft yao-msft commented Dec 8, 2022

Added tests. Also verified locally.

Microsoft Reviewers: Open in CodeFlow

@yao-msft yao-msft requested a review from a team as a code owner December 8, 2022 23:25
@@ -223,7 +224,15 @@ namespace AppInstaller::Manifest
return MinVersion <= Utility::Version(version);
}

// m_foldedId should be set whenever Id is set
Copy link
Member

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?

Copy link
Contributor Author

@yao-msft yao-msft Dec 9, 2022

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.

Comment on lines 205 to 207
string_t Id() const { return m_id; };
std::optional<Utility::Version> MinVersion;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not const string_t&?

@yao-msft yao-msft merged commit 92d91ad into microsoft:master Dec 9, 2022
@yao-msft yao-msft deleted the dependencyfix branch December 9, 2022 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants