Skip to content

Fix PATH issue for archive containing nested portables with binary dependencies - #4816

Merged
Ryan (ryfu-msft) merged 5 commits into
microsoft:masterfrom
ryfu-msft:portableArchiveBug
Sep 20, 2024
Merged

Ryan (ryfu-msft) merged 5 commits into
microsoft:masterfrom
ryfu-msft:portableArchiveBug

Conversation

@ryfu-msft

@ryfu-msft Ryan (ryfu-msft) commented Sep 17, 2024 •

Copy link
Copy Markdown
Contributor

Related to: #2711

Changes:
Added a new boolean field to the installer manifest called ArchiveBinariesDependOnPath. This field only applies to nested portables in an archive. When set to true, the portable installer will skip creating a symlink and automatically add the install directory to path.

No manifest validation was added since this field only affected Portables in Archive and should not be blocking even if it doesn't apply. Willing to add a manifest validation warning if needed.

Verified with an E2E test to make sure that the install directory path is added instead of the symlink directory.
Tested with this package before and after the change to make sure that the portable works as expected: microsoft/winget-pkgs#173679

Microsoft Reviewers: Open in CodeFlow

@ryfu-msft
Ryan (ryfu-msft) marked this pull request as ready for review September 18, 2024 22:35
@ryfu-msft
Ryan (ryfu-msft) requested a review from a team as a code owner September 18, 2024 22:35
@ryfu-msft

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ryfu-msft
Ryan (ryfu-msft) merged commit e813c49 into microsoft:master Sep 20, 2024
@ryfu-msft
Ryan (ryfu-msft) deleted the portableArchiveBug branch September 20, 2024 01:35
Martin Hinshelwood nkdAgility.com (MrHinsh) added a commit to nkdAgility/winget-pkgs that referenced this pull request Jan 9, 2025
This change adds the necessary feature from microsoft/winget-cli#4816 to handle microsoft/winget-cli#2711 which we suffer from.
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.

2 participants