[release/v7.6.2] Specify linux-arm64 runtime if package type is deb-arm64 in packaging.psm1#27440
Merged
daxian-dbw merged 1 commit intoMay 13, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Backports the packaging fix to release/v7.6.2 so Start-PSPackage -Type deb-arm64 selects the correct .NET RID (linux-arm64) when resolving build options, preventing Debian ARM64 packaging from defaulting to linux-x64.
Changes:
- Add a
deb-arm64branch inStart-PSPackageruntime/configuration resolution to force-Runtime linux-arm64forNew-PSOptions.
Comment on lines
+124
to
+126
| elseif ($Type.Count -eq 1 -and $Type[0] -eq "deb-arm64") { | ||
| New-PSOptions -Configuration "Release" -Runtime 'linux-arm64' -WarningAction SilentlyContinue | ForEach-Object { $_.Runtime, $_.Configuration } | ||
| } |
andyleejordan
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #27401 to release/v7.6.2
Triggered by @daxian-dbw on behalf of @anamnavi
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Fixes arm64 Debian packaging by specifying the
linux-arm64runtime in thedeb-arm64branch ofStart-PSPackage. This is a required follow-up fix to PR #26925 which introduced thedeb-arm64package type.Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Verified via the original PR. The fix adds a condition to set the
linux-arm64runtime whenStart-PSPackageis called withdeb-arm64package type, preventing packaging failures for that architecture.Risk
REQUIRED: Check exactly one box.
Targeted fix to the
deb-arm64code path added by PR #26925. Without this, arm64 Debian packaging fails due to defaulting tolinux-x64runtime. Only affects the newdeb-arm64package type, no impact on existing types.