-
Notifications
You must be signed in to change notification settings - Fork 631
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 discovery of payloads with mo container that need to be assigned … #519
Conversation
…to the default container. See #6174
Thanks. We would need this fixed in v4 first before considering whether to take it in v3.14. Maybe I'm missing something, but I don't understand how this fixes the issue of the cab file not being assigned to the detached container. |
The original implementation had a list of all payloads that has a container. |
{ | ||
PayloadInfoRow payload = allPayloads[payloadName]; | ||
if (PackagingType.Embedded == payload.Packaging) |
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.
If I understand your explanation, can't you do this with in a couple lines by adding
if (!String.IsNullOrEmpty(payload.Container))
{
continue;
}
else if (!PackagingType.Embedded == payload.Packaging)
and not doing anything else? The less lines touched, the better.
Also, that targeted fix seems incomplete without further investigation. The fact that the payload isn't added to the ContainerInfo
's Payloads
around line 3427 makes me wonder if other things are broken.
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.
The cab payloads are added to the container in ChainPackageInfo.ResolveMsiPackage() line 863.
I preferred this solution to make the code cleaner, as the only use of payloadsAddedToContainers was to detect which payloads belong to no container.
I think using Linq is more readable
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.
Thanks.
Agreed, your code is cleaner. I probably would still take this as is. But at this point of v3's lifecycle, I would argue that it's more important that the diffs are cleaner. This PR is +17/-27 with changes scattered through the file. My proposed change would be +5/-1 with all of the lines together. Of course, all of this doesn't really matter until this is fixed (or verified as already fixed) in v4 and we agree to take this fix in v3.14.
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.
Well... most diffs are due to "Remove and Sort Usings" in VS
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.
Remove and sort usings are fine in v4 but not in v3 at this point in time.
Please remove extraneous code changes so we can better review the actual changes you propose.
This fix is more risky than I would like. If more people complain, then we might consider the small targeted fix that I proposed. |
…to the default container. See #6174
WiX v3.x pull requests
Active development has now moved to WiX v4.
Pull requests for WiX v3.x must be approved before they can be reviewed or accepted.